]> git.ipfire.org Git - thirdparty/git.git/blobdiff - GIT-VERSION-GEN
unpack-trees: handle lstat failure for existing directory
[thirdparty/git.git] / GIT-VERSION-GEN
index 4149fa9eb7a77eef45152394504eb7ab8ba2140b..d810ec288015de8113fa388730579e4fdedbfa20 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 GVF=GIT-VERSION-FILE
-DEF_VER=v1.7.0.8
+DEF_VER=v1.7.3.5
 
 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]*)