From e9acd522455f73f5778a313c73085f4b7c7193cb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Richard=20Fr=C3=B6hning?= <misanthropos@gmx.de>
Date: Sat, 27 Jul 2024 23:14:23 +0200
Subject: [PATCH]  scripts: add --tags to git describe in getversion.sh to
 include lightweighted tags (#3310)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Richard Fröhning <misanthropos@gmx.de>
---
 scripts/getversion.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/getversion.sh b/scripts/getversion.sh
index 8c437762a..ccd2e2a86 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
-- 
GitLab