]> git.ipfire.org Git - thirdparty/git.git/blobdiff - GIT-VERSION-GEN
Merge branch 'nd/maint-clone-gitdir' into maint
[thirdparty/git.git] / GIT-VERSION-GEN
index 577e1fd20eb0bd94e001b9188576ca74f99741d7..b74b21f7dd66a01ab6c54daa95c953c60829c3d0 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 GVF=GIT-VERSION-FILE
-DEF_VER=v1.7.0
+DEF_VER=v1.7.6.3
 
 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]*)