Code

am: format is in $patch_format, not parse_patch
[git.git] / git-am.sh
index f719f6e654fdb7ee92013c824af439b5f0f58f95..78e3ee039f921a0ae5d121340153fee93ab45154 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
@@ -268,7 +268,8 @@ split_patches () {
                msgnum=
                ;;
        *)
-               if test -n "$parse_patch" ; then
+               if test -n "$patch_format"
+               then
                        clean_abort "Patch format $patch_format is not supported."
                else
                        clean_abort "Patch format detection failed."