]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
version-gen.sh: Add the `--tags` flag to `git describe`.
authorFlorian Forster <octo@collectd.org>
Tue, 6 Feb 2024 21:25:20 +0000 (22:25 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 7 Feb 2024 08:22:45 +0000 (09:22 +0100)
version-gen.sh

index 178e0fd9cc5f81b1bece3359b0c2715261046c54..236d4f9fde311b554fac4617cae8fcbd2b4f2b47 100755 (executable)
@@ -3,7 +3,7 @@
 DEFAULT_VERSION="5.12.0.git"
 
 if [ -d .git ]; then
-       VERSION="`git describe --dirty=+ --abbrev=7 2> /dev/null | sed -e '/^collectd-/!d' -e 's///' -e 'y/-/./'`"
+       VERSION="`git describe --tags --dirty=+ --abbrev=7 2> /dev/null | sed -e '/^collectd-/!d' -e 's///' -e 'y/-/./'`"
 fi
 
 if test -z "$VERSION"; then