diff --git a/contrib/semver/version.sh b/contrib/semver/version.sh index a2c9f82..8dd3dd0 100644 --- a/contrib/semver/version.sh +++ b/contrib/semver/version.sh @@ -1,7 +1,7 @@ #!/bin/sh # Get the last tag -TAG=$(git describe --abbrev=0 --tags 2>/dev/null) +TAG=$(git describe --abbrev=0 --tags --match=v* 2>/dev/null) # Get the number of commits from the last tag, or if not, from # the first commit