commit | 935e247e8c0b2330afaa56e117e7a1c0120e6420 | [log] [tgz] |
---|---|---|
author | Lea Wiemann <lewiemann@gmail.com> | Sat Jun 28 19:13:29 2008 +0200 |
committer | Junio C Hamano <gitster@pobox.com> | Sat Jun 28 10:53:11 2008 -0700 |
tree | 96dd30c7f2864ce103860e5137bcbd3c7cd02da3 | |
parent | ef98c5cafb3e799b1568bb843fcd45920dc62f16 [diff] [blame] |
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>
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index f221447..cb7cd4b 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN
@@ -16,7 +16,7 @@ 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