X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=GIT-VERSION-GEN;h=82fd72652b6d35837b8786005024263ac61630dd;hb=443f26cbcac66368eb0ec8a8a250bf5815ad0a10;hp=3eb6d8517eeda1e51d042363f0265fc87f4e5ba0;hpb=9b5a7c447b72d10442858193b5aae03a19fb1720;p=git.git diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index 3eb6d8517..82fd72652 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -1,7 +1,7 @@ #!/bin/sh GVF=GIT-VERSION-FILE -DEF_VER=v1.7.0.4 +DEF_VER=v1.7.1 LF=' ' @@ -12,7 +12,7 @@ if test -f version then VN=$(cat version) || VN="$DEF_VER" elif test -d .git -o -f .git && - VN=$(git describe --abbrev=4 HEAD 2>/dev/null) && + VN=$(git describe --match "v[0-9]*" --abbrev=4 HEAD 2>/dev/null) && case "$VN" in *$LF*) (exit 1) ;; v[0-9]*)