From c41abd211bddeb8dd5c895515bb8fc94b6fbf806 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Sun, 6 Feb 2022 13:52:19 -0700 Subject: [PATCH] xemu-version.sh: Add --tags arg to `git describe` --- scripts/xemu-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/xemu-version.sh b/scripts/xemu-version.sh index 23f14a5f11..5fac211b45 100755 --- a/scripts/xemu-version.sh +++ b/scripts/xemu-version.sh @@ -21,7 +21,7 @@ XEMU_BRANCH=$( \ XEMU_VERSION=$( \ cd "$dir"; \ if test -e .git; then \ - git describe --match 'xemu-v*' | cut -c 7- | tr -d '\n'; \ + git describe --tags --match 'xemu-v*' | cut -c 7- | tr -d '\n'; \ elif test -e XEMU_VERSION; then \ cat XEMU_VERSION; \ fi)