From f4aa4f184803e760cef0da6bb237c5cf9179c697 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 5 Mar 2018 19:54:18 +0000 Subject: [PATCH] Match v* tags only --- contrib/semver/version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/semver/version.sh b/contrib/semver/version.sh index a2c9f82a..8dd3dd09 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