]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use un-annotated tags for determining version 5331/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 18 May 2017 09:27:02 +0000 (11:27 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 18 May 2017 09:27:02 +0000 (11:27 +0200)
build-aux/gen-version

index c2d71ae9eab36c7abe0ccfc9d03e484ab4ee3e5f..c40fc159c1e241f55f07e916c63c54bcff0e60e3 100755 (executable)
@@ -24,7 +24,7 @@ fi
 if [ ! -z "$(git rev-parse --abbrev-ref HEAD 2> /dev/null)" ]; then
   if $(git rev-parse --abbrev-ref HEAD | grep -q 'rel/'); then
     REL_TYPE="$(git rev-parse --abbrev-ref HEAD | cut -d/ -f 2 | cut -d- -f 1)"
-    VERSION="$(git describe --match=${REL_TYPE}-* --dirty=.dirty | cut -d- -f 2-)"
+    VERSION="$(git describe --match=${REL_TYPE}-* --tags --dirty=.dirty | cut -d- -f 2-)"
   else
     GIT_VERSION=$(git show --no-patch --format=format:%h HEAD)
     BRANCH=".$(git rev-parse --abbrev-ref HEAD | perl -p -e 's/[^[:alnum:]]//g;')"