From eb02fb2083425e11612af8b059630e9fac66960a Mon Sep 17 00:00:00 2001 From: Jan Schlicht Date: Wed, 8 Jul 2020 13:45:02 +0200 Subject: [PATCH] Search for any tag when running 'git describe' Git tags created by Github aren't annotated. By running 'git describe --tags', these tags are recognized as well. Signed-off-by: Jan Schlicht --- scripts/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index ba6dc96..2568eed 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -9,8 +9,8 @@ source "$(dirname "$0")/config.sh" COMMAND=$1 -if git describe --exact-match >/dev/null; then - VERSION=$(git describe --dirty) +if git describe --tags --exact-match >/dev/null; then + VERSION=$(git describe --tags --dirty) else VERSION=$(git describe --tags --abbrev=0 --dirty)+dev.$(git rev-parse HEAD) fi