From 3068438455298199b13073031eecc64e9a1ef24d Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 18 May 2017 11:08:55 +0200 Subject: [PATCH] Use un-annotated tags for determining version --- build-aux/gen-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/gen-version b/build-aux/gen-version index 463403b2b..3eed4f5bb 100755 --- a/build-aux/gen-version +++ b/build-aux/gen-version @@ -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/-//g;')" -- 2.40.0