aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/mbox.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/b4/mbox.py b/b4/mbox.py
index 96e2d04..dc4cebb 100644
--- a/b4/mbox.py
+++ b/b4/mbox.py
@@ -255,6 +255,8 @@ def make_am(msgs, cmdargs, msgid):
# Blindly attempt to apply to the current tree
ecode, out = b4.git_run_command(topdir, ['am'], stdin=ambytes, logstderr=True)
logger.info(out.strip())
+ if ecode == 0:
+ thanks_record_am(lser, cherrypick=cherrypick)
sys.exit(ecode)
if not base_commit:
@@ -307,6 +309,7 @@ def make_am(msgs, cmdargs, msgid):
logger.critical(' git checkout -b %s %s', gitbranch, base_commit)
if cmdargs.outdir != '-':
logger.critical(' git am %s', am_filename)
+ thanks_record_am(lser, cherrypick=cherrypick)
def thanks_record_am(lser, cherrypick=None):