]> git.ipfire.org Git - thirdparty/git.git/commitdiff
GIT-VERSION-GEN: do not fail if a 'HEAD' file exists in the working copy
authorLea Wiemann <lewiemann@gmail.com>
Sat, 28 Jun 2008 17:13:29 +0000 (19:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 28 Jun 2008 17:53:11 +0000 (10:53 -0700)
Signed-off-by: Lea Wiemann <LeWiemann@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
GIT-VERSION-GEN

index f221447478aea8628c0ab6d098338f7e8630201e..cb7cd4b53827fa6820e84b1318572d0115b3b17f 100755 (executable)
@@ -16,7 +16,7 @@ elif test -d .git -o -f .git &&
        case "$VN" in
        *$LF*) (exit 1) ;;
        v[0-9]*)
-               test -z "$(git diff-index --name-only HEAD)" ||
+               test -z "$(git diff-index --name-only HEAD --)" ||
                VN="$VN-dirty" ;;
        esac
 then