Merge pull request #1198 from anderbubble/get-version-lightweight-tags

Use lightweight tags when generating version
This commit is contained in:
Jonathon Anderson
2024-04-18 19:21:18 -06:00
committed by GitHub

View File

@@ -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,,'
}