From f272280faf654ec332d5d17b3e46ccdbedb421c4 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Wed, 24 Jun 2009 09:18:03 +0200 Subject: [PATCH] Old versions of git 0.5 does not support the git show --oneline. - Maybe this works? --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index da9e35e..964d4e5 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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