]> git.ipfire.org Git - thirdparty/git.git/blobdiff - GIT-VERSION-GEN
The fifth batch
[thirdparty/git.git] / GIT-VERSION-GEN
index 3d69127479cb4db20b26fde6ec64998be1f0f37e..814cdcf95d7501bc6b575e7c881e7052baebd5f7 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 GVF=GIT-VERSION-FILE
-DEF_VER=v2.43.1
+DEF_VER=v2.45.GIT
 
 LF='
 '
@@ -11,7 +11,7 @@ LF='
 if test -f version
 then
        VN=$(cat version) || VN="$DEF_VER"
-elif test -d ${GIT_DIR:-.git} -o -f .git &&
+elif { test -d "${GIT_DIR:-.git}" || test -f .git; } &&
        VN=$(git describe --match "v[0-9]*" HEAD 2>/dev/null) &&
        case "$VN" in
        *$LF*) (exit 1) ;;