summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bcce965)
raw | patch | inline | side by side (parent: bcce965)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 14 Aug 2015 18:44:51 +0000 (20:44 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 14 Aug 2015 18:50:33 +0000 (20:50 +0200) |
Some users (like me) override this in their .gitconfig
version-gen.sh | patch | blob | history |
diff --git a/version-gen.sh b/version-gen.sh
index 08c6fef99e41837546bac7533970b2634a8e57dc..52f04e6a32588cabbe1432d315c1f471f8ff1282 100755 (executable)
--- a/version-gen.sh
+++ b/version-gen.sh
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"