From 935e247e8c0b2330afaa56e117e7a1c0120e6420 Mon Sep 17 00:00:00 2001 From: Lea Wiemann Date: Sat, 28 Jun 2008 19:13:29 +0200 Subject: [PATCH] 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 --- GIT-VERSION-GEN | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2