X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=GIT-VERSION-GEN;h=82fd72652b6d35837b8786005024263ac61630dd;hb=799c34449e6e54c7e5fc0c623115ada4c868c64d;hp=3eb6d8517eeda1e51d042363f0265fc87f4e5ba0;hpb=07b838f087a1535e387d5d4a1414b2b545b73265;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]*)