]> git.ipfire.org Git - thirdparty/git.git/blobdiff - GIT-VERSION-GEN
Merge branch 'bl/doc-config-fixes'
[thirdparty/git.git] / GIT-VERSION-GEN
index e1f223debbb684a28c0ae7ce93184028bafb767d..df788c764b7bb4cd61a1b2a6da277bfce82cdfca 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 GVF=GIT-VERSION-FILE
-DEF_VER=v2.43.2
+DEF_VER=v2.44.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) ;;