Use HEAD to embed the reference where you are now. Signed-off-by: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> --- usr/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/usr/Makefile b/usr/Makefile index b5f6ac3..ce91164 100644 --- a/usr/Makefile +++ b/usr/Makefile @@ -1,5 +1,5 @@ VERSION = 0.9.2 -EXTRAVERSION = $(if $(shell git-show-ref 2>/dev/null),-git-$(shell git-show-ref --heads --abbrev|awk '/refs\/heads\/master/{print $$1}')) +EXTRAVERSION = $(if $(shell git-show-ref 2>/dev/null),-git-$(shell git-show-ref --head --abbrev|head -1|awk '{print $$1}')) mandir = /usr/share/man -- 1.5.6.5 -- To unsubscribe from this list: send the line "unsubscribe stgt" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html