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