* [PATCH] GIT-VERSION-GEN: do not fail if a 'HEAD' file exists in the working copy
@ 2008-06-28 17:13 Lea Wiemann
0 siblings, 0 replies; only message in thread
From: Lea Wiemann @ 2008-06-28 17:13 UTC (permalink / raw)
To: git; +Cc: Lea Wiemann
Signed-off-by: Lea Wiemann <LeWiemann@gmail.com>
---
I had a created a "HEAD" file for test purposes (to see under what
conditions commands would fail). This patch allows git to still be
built even if such a file exists.
GIT-VERSION-GEN | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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 @@ 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
--
1.5.6.1.205.g55df3e
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-28 17:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-28 17:13 [PATCH] GIT-VERSION-GEN: do not fail if a 'HEAD' file exists in the working copy Lea Wiemann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).