Old versions of git 0.5 does not support the git show --oneline. - Maybe this works?

This commit is contained in:
Jan Vidar Krey 2009-06-24 09:18:03 +02:00
parent b1d4b1288f
commit f272280faf
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ LDFLAGS += -L$(LIBEVENT_PATH)
endif
ifeq ($(GIT_REVISION),YES)
CFLAGS += -DGIT_REVISION=\"-git:$(shell git show --oneline | head -n 1 | cut -f 1 -d " ")\"
CFLAGS += -DGIT_REVISION=\"-git:$(shell git show --abbrev-commit | head -n 1 | cut -f 2 -d " ")\"
endif
# Sources