summaryrefslogtreecommitdiff
path: root/GIT-VERSION-GEN
diff options
context:
space:
mode:
authorLibravatar Lea Wiemann <lewiemann@gmail.com>2008-06-28 19:13:29 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-06-28 10:53:11 -0700
commit935e247e8c0b2330afaa56e117e7a1c0120e6420 (patch)
tree96dd30c7f2864ce103860e5137bcbd3c7cd02da3 /GIT-VERSION-GEN
parentcommit-tree: lift completely arbitrary limit of 16 parents (diff)
downloadtgif-935e247e8c0b2330afaa56e117e7a1c0120e6420.tar.xz
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>
Diffstat (limited to 'GIT-VERSION-GEN')
-rwxr-xr-xGIT-VERSION-GEN2
1 files changed, 1 insertions, 1 deletions
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index f221447478..cb7cd4b538 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