Merge branch 'cb/rebase-am-exit-code'
authorJunio C Hamano <gitster@pobox.com>
Fri, 10 Jul 2015 21:26:16 +0000 (14:26 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Jul 2015 21:26:16 +0000 (14:26 -0700)
"git rebase" did not exit with failure when format-patch it invoked
failed for whatever reason.

* cb/rebase-am-exit-code:
rebase: return non-zero error code if format-patch fails

git-rebase--am.sh
index f9237323331e992a58cee0af79090a7bbeec434c..9ae898bc1d7d301983893e6df404c696b80a87f5 100644 (file)
@@ -78,7 +78,7 @@ else
 
                As a result, git cannot rebase them.
                EOF
-               return $?
+               return $ret
        fi
 
        git am $git_am_opt --rebasing --resolvemsg="$resolvemsg" \