@matheusbsbs / matheus-bagliano / commits / 935e247e8c
Fork 0

GIT-VERSION-GEN: do not fail if a 'HEAD' file exists in the working copy

Signed-off-by: Lea Wiemann <LeWiemann@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Lea Wiemann committed Jun 28, 2008 at 19:13 UTC 935e247e8c0b2330afaa56e117e7a1c0120e6420
1 file changed +1 -1
GIT-VERSION-GEN
+1 -1
@@ -16,7 +16,7 @@ elif test -d .git -o -f .git &&
16 case "$VN" in
17 *$LF*) (exit 1) ;;
18 v[0-9]*)
19 - test -z "$(git diff-index --name-only HEAD)" ||
19 + test -z "$(git diff-index --name-only HEAD --)" ||
20 VN="$VN-dirty" ;;
21 esac
22 then