Skip to content

Commit 0e4607c

Browse files
committed
Merge branch 'maint'
* maint: GIT-VERSION-GEN: restrict tags used
2 parents d92f844 + 3368edd commit 0e4607c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GIT-VERSION-GEN

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if test -f version
1212
then
1313
VN=$(cat version) || VN="$DEF_VER"
1414
elif test -d .git -o -f .git &&
15-
VN=$(git describe --abbrev=4 HEAD 2>/dev/null) &&
15+
VN=$(git describe --match "v[0-9]*" --abbrev=4 HEAD 2>/dev/null) &&
1616
case "$VN" in
1717
*$LF*) (exit 1) ;;
1818
v[0-9]*)

0 commit comments

Comments
 (0)