summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0fcb2ca)
raw | patch | inline | side by side (parent: 0fcb2ca)
author | Nicolas Sebrecht <ni.s@laposte.net> | |
Fri, 7 Aug 2009 01:08:13 +0000 (20:08 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 7 Aug 2009 03:52:09 +0000 (20:52 -0700) |
Avoid git ending with this message:
"Patch format is not supported."
With improved error message in the format detection failure case by
Giuseppe Bilotta.
Signed-off-by: Nicolas Sebrecht <ni.s@laposte.net>
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
"Patch format is not supported."
With improved error message in the format detection failure case by
Giuseppe Bilotta.
Signed-off-by: Nicolas Sebrecht <ni.s@laposte.net>
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-am.sh | patch | blob | history |
diff --git a/git-am.sh b/git-am.sh
index dd60f5d9cb6e8713551a5d3e93c40f9a0097a839..f719f6e654fdb7ee92013c824af439b5f0f58f95 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
msgnum=
;;
*)
- clean_abort "Patch format $patch_format is not supported."
+ if test -n "$parse_patch" ; then
+ clean_abort "Patch format $patch_format is not supported."
+ else
+ clean_abort "Patch format detection failed."
+ fi
;;
esac
}