提交 af12fb7b 编写于 作者: N Nicolas Sebrecht 提交者: Junio C Hamano

git-am: print fair error message when format detection fails

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: NNicolas Sebrecht <ni.s@laposte.net>
Signed-off-by: NBrandon Casey <drafnel@gmail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 584c4356
......@@ -268,7 +268,11 @@ split_patches () {
msgnum=
;;
*)
if test -n "$parse_patch" ; then
clean_abort "Patch format $patch_format is not supported."
else
clean_abort "Patch format detection failed."
fi
;;
esac
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册