From: Ruben Kerkhof Date: Fri, 14 Aug 2015 18:44:51 +0000 (+0200) Subject: Always use 7 hex characters when describing X-Git-Tag: collectd-5.6.0~572^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=63da831bc89675ff69862fc4d37f208276f0e431;p=collectd.git Always use 7 hex characters when describing Some users (like me) override this in their .gitconfig --- 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"