From: R. Steve McKown Date: Thu, 8 Sep 2011 15:24:16 +0000 (-0600) Subject: Makefile use of git log OK if decorate is default X-Git-Tag: debian/0.11.4-1tmi~7 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=cp210x.git;a=commitdiff_plain;h=44c9c91b34ed8e1ad167b9d9e7a2d8b9877e4f30 Makefile use of git log OK if decorate is default --- diff --git a/Makefile b/Makefile index 09012ab..a661ec4 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ REPOID := $(shell svn info 2>/dev/null | grep "Revision: " | sed -e s'/^[^0-9]*\ ifeq (,$(REPOID)) REPOID := $(shell git svn info 2>/dev/null | grep "Revision: " | sed -e s'/^[^0-9]*\([0-9]*\).*$$/svn:revision \1/') ifeq (,$(REPOID)) - REPOID := $(shell git log -n1 2>/dev/null | head -1 | sed -e s'/^/git:/') + REPOID := $(shell git log --no-decorate -n1 2>/dev/null | head -1 | sed -e s'/^/git:/') endif endif ifeq (,$(REPOID))