summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ace1534)
raw | patch | inline | side by side (parent: ace1534)
author | Junio C Hamano <junkio@cox.net> | |
Sat, 7 May 2005 07:48:00 +0000 (00:48 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 7 May 2005 07:48:00 +0000 (00:48 -0700) |
An unmerged path is given as the sole parameter to the script, so it
should check against $# being 1, not 2.
Signed-off-by: Junio C Hamano <junkio@cox.net>
should check against $# being 1, not 2.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-apply-patch-script | patch | blob | history |
diff --git a/git-apply-patch-script b/git-apply-patch-script
index 13ec1c4490612f524f9b1070a57229cdc2c50aed..0849a3e68b3a219aa41e3357fd71fb39b285e059 100755 (executable)
--- a/git-apply-patch-script
+++ b/git-apply-patch-script
#
case "$#" in
-2)
+1)
echo >&2 "cannot handle unmerged diff on path $1."
exit 1 ;;
esac