From 7d78f8f57b5446e3ddfbb27cc8e9b48c23c52b45 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Sat, 13 Jul 2013 17:26:10 +0200 Subject: build: use git describe --always Use git describe --always in the Makefile instead of git describe as it can fail otherwise. Signed-off-by: Daniel Borkmann --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7b3e85c..4e32f6f 100644 --- a/Makefile +++ b/Makefile @@ -159,7 +159,7 @@ GZIP = gzip --best -c GIT_ARCHIVE = git archive --prefix=netsniff-ng-$(VERSION_STRING)/ $(VERSION_STRING) | \ $(1) > ../netsniff-ng-$(VERSION_STRING).tar.$(2) GIT_TAG = git tag -a $(VERSION_STRING) -s -m "tools: $(VERSION_STRING) release" -GIT_LOG = git shortlog -n --not $(shell git describe --abbrev=0 --tags) +GIT_LOG = git shortlog -n --not $(shell git describe --always --abbrev=0 --tags) GIT_REM = git ls-files -o | xargs rm -rf GIT_PEOPLE = git log --no-merges $(VERSION_STRING)..HEAD | grep Author: | cut -d: -f2 | \ cut -d\< -f1 | sort | uniq -c | sort -nr -- cgit v1.2.3-54-g00ecf