From 63da831bc89675ff69862fc4d37f208276f0e431 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 14 Aug 2015 20:44:51 +0200 Subject: [PATCH] Always use 7 hex characters when describing Some users (like me) override this in their .gitconfig --- version-gen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version-gen.sh b/version-gen.sh index 08c6fef9..52f04e6a 100755 --- a/version-gen.sh +++ b/version-gen.sh @@ -2,7 +2,7 @@ DEFAULT_VERSION="5.5.0.git" -VERSION="`git describe --dirty=+ 2> /dev/null | grep collectd | sed -e 's/^collectd-//'`" +VERSION="`git describe --dirty=+ --abbrev=7 2> /dev/null | grep collectd | sed -e 's/^collectd-//'`" if test -z "$VERSION"; then VERSION="$DEFAULT_VERSION" -- 2.11.0