diff --git a/contrib/semver/version.sh b/contrib/semver/version.sh index d2ec6ce1..2b61ed22 100644 --- a/contrib/semver/version.sh +++ b/contrib/semver/version.sh @@ -3,9 +3,9 @@ case "$*" in *--bare*) # Remove the "v" prefix - git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" | cut -c 2- + git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" --abbrev=7 | cut -c 2- ;; *) - git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" + git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" --abbrev=7 ;; esac