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>
This commit is contained in:

committed by
Junio C Hamano

parent
ef98c5cafb
commit
935e247e8c
@ -16,7 +16,7 @@ elif test -d .git -o -f .git &&
|
|||||||
case "$VN" in
|
case "$VN" in
|
||||||
*$LF*) (exit 1) ;;
|
*$LF*) (exit 1) ;;
|
||||||
v[0-9]*)
|
v[0-9]*)
|
||||||
test -z "$(git diff-index --name-only HEAD)" ||
|
test -z "$(git diff-index --name-only HEAD --)" ||
|
||||||
VN="$VN-dirty" ;;
|
VN="$VN-dirty" ;;
|
||||||
esac
|
esac
|
||||||
then
|
then
|
||||||
|
Reference in New Issue
Block a user