Skip to content
Snippets Groups Projects
Commit f2e65b02 authored by Luis Gerhorst's avatar Luis Gerhorst Committed by Bernhard Heinloth
Browse files

Don't depend on .git to exist, may not be present in all worktrees

parent 069a2452
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ $(obj)/trigger.o: $(obj)/kernel_memo_git_commit.h $(obj)/kernel_memo_git_status.
targets += $(obj)/kernel_memo_git_commit.h $(obj)/kernel_memo_git_status.h
$(obj)/kernel_memo_git_commit.h: .git/HEAD .git/index
$(obj)/kernel_memo_git_commit.h: FORCE
echo "const char *kernel_memo_git_commit = \"$(shell git rev-parse HEAD)\";" > $@
$(obj)/kernel_memo_git_status.h: FORCE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment