From: Lea Wiemann Date: Sat, 28 Jun 2008 17:13:29 +0000 (+0200) Subject: GIT-VERSION-GEN: do not fail if a 'HEAD' file exists in the working copy X-Git-Tag: v1.6.0-rc0~193 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=935e247e8c0b2330afaa56e117e7a1c0120e6420;p=git.git GIT-VERSION-GEN: do not fail if a 'HEAD' file exists in the working copy Signed-off-by: Lea Wiemann Signed-off-by: Junio C Hamano --- diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index f22144747..cb7cd4b53 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -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