Skip to content

Commit

Permalink
version-gen.sh: Add the --tags flag to git describe.
Browse files Browse the repository at this point in the history
  • Loading branch information
octo committed Feb 6, 2024
1 parent 67633b8 commit 6057dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion version-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
DEFAULT_VERSION="6.0.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
Expand Down

0 comments on commit 6057dfc

Please sign in to comment.