diff options
author | Nicolas Sebrecht <ni.s@laposte.net> | 2009-08-06 20:08:13 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-10 16:54:29 -0700 |
commit | af12fb7b3048c5bdd2e90885a6736ebc29d84f01 (patch) | |
tree | 5683be33ca0a69dc8bdb037144148a5071d2d708 | |
parent | 584c43567be838c8e2dd89c881cac028f5bd4565 (diff) | |
download | git-af12fb7b3048c5bdd2e90885a6736ebc29d84f01.tar.gz |
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: Nicolas Sebrecht <ni.s@laposte.net>
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-x | git-am.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -268,7 +268,11 @@ split_patches () { 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 } |