From f27e28dd18a6867f1818670308a64650b93ce8b1 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Thu, 18 Apr 2024 19:20:02 -0600 Subject: [PATCH] Use lightweight tags when generating version GitHub tags for draft releases are lightweight tags. Signed-off-by: Jonathon Anderson --- scripts/get-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get-version.sh b/scripts/get-version.sh index d8362c8f..ebea5325 100755 --- a/scripts/get-version.sh +++ b/scripts/get-version.sh @@ -32,7 +32,7 @@ fi # gitdesc extracts the closest version tag, removing the leading "v" and # returning the rest gitdesc() { - git describe --match='v[0-9]*' --always --candidates=1 "$@" 2>/dev/null | + git describe --tags --match='v[0-9]*' --always --candidates=1 "$@" 2>/dev/null | sed -e 's,^v,,' }