]> asedeno.scripts.mit.edu Git - git.git/blobdiff - GIT-VERSION-GEN
Add a test for git-add --ignore-errors
[git.git] / GIT-VERSION-GEN
index 33dc1ab222d6199b57f87594a6521f224f2d4210..3cabc92e7a1f8ce30eb6e5151a4c81c82468bcee 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 GVF=GIT-VERSION-FILE
-DEF_VER=v1.5.4.4.GIT
+DEF_VER=v1.5.5.GIT
 
 LF='
 '
@@ -11,7 +11,7 @@ LF='
 if test -f version
 then
        VN=$(cat version) || VN="$DEF_VER"
-elif test -d .git &&
+elif test -d .git -o -f .git &&
        VN=$(git describe --abbrev=4 HEAD 2>/dev/null) &&
        case "$VN" in
        *$LF*) (exit 1) ;;