Skip to content

Commit

Permalink
GIT-VERSION-GEN: do not fail if a 'HEAD' file exists in the working copy
Browse files Browse the repository at this point in the history
Signed-off-by: Lea Wiemann <LeWiemann@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Lea Wiemann authored and gitster committed Jun 28, 2008
1 parent ef98c5c commit 935e247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GIT-VERSION-GEN
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 935e247

Please sign in to comment.