From: Giuseppe Bilotta Date: Mon, 29 Aug 2011 15:22:06 GMT Subject: [PATCH] am: format is in $patch_format, not parse_patch Message-ID: <1314631326-11796-1-git-send-email-giuseppe.bilotta@gmail.com> The error message given when the patch format was not recognized was wrong, since the variable checked was $parse_patch rather than $patch_format. Fix by checking the non-emptyness of the correct variable. Signed-off-by: Giuseppe Bilotta --- git-am.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/git-am.sh b/git-am.sh index e78cb54..4fff195 100755 --- a/git-am.sh +++ b/git-am.sh @@ -312,7 +312,7 @@ split_patches () msgnum= ;; *) - if test -n "$parse_patch" ; then + if test -n "$patch_format" ; then clean_abort "$(eval_gettext "Patch format \$patch_format is not supported.")" else clean_abort "$(gettext "Patch format detection failed.")" -- 1.7.7.rc0.328.g626f7.dirty