From 979e8db75fb234fbcf5d36940886be06cc1ecd1a Mon Sep 17 00:00:00 2001 From: Grische <2787581+grische@users.noreply.github.com> Date: Wed, 30 Oct 2024 01:37:13 +0100 Subject: [PATCH] scripts: add --tags to git describe in getversion.sh to include lightweighted tags (#3310) (#3359) (cherry picked from commit e9acd522455f73f5778a313c73085f4b7c7193cb) --- scripts/getversion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/getversion.sh b/scripts/getversion.sh index 8c437762a2..ccd2e2a865 100755 --- a/scripts/getversion.sh +++ b/scripts/getversion.sh @@ -8,6 +8,6 @@ fi cd "$1" || exit 1 cat .scmversion 2>/dev/null && exit 0 -git --git-dir=.git describe --always --abbrev=7 --dirty=+ 2>/dev/null && exit 0 +git --git-dir=.git describe --tags --always --abbrev=7 --dirty=+ 2>/dev/null && exit 0 echo unknown