summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-05-28 12:12:16 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-05-28 12:13:25 -0400
commit064b11fc5eac669b2ae8e40e8570c54067b384bd (patch)
tree3f5d1ccf874c596a9e36405271c24d79acbee40c
parent8e654910e1b1fcf3afa903d9952539794eef0d1a (diff)
downloadb4-064b11fc5eac669b2ae8e40e8570c54067b384bd.tar.gz
Don't output git am suggestion for -o -
Since we're piping out to stdout, there's obviously no reason to show what the "git am" command should be -- especially if we delete the temporary mbox file after the command completes. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/mbox.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/b4/mbox.py b/b4/mbox.py
index 3e69a32..85f9fcd 100644
--- a/b4/mbox.py
+++ b/b4/mbox.py
@@ -188,7 +188,8 @@ def mbox_to_am(mboxfile, cmdargs):
if base_commit:
logger.critical(' Base: %s', base_commit)
logger.critical(' git checkout -b %s %s', gitbranch, base_commit)
- logger.critical(' git am %s', am_filename)
+ if cmdargs.outdir != '-':
+ logger.critical(' git am %s', am_filename)
else:
cleanmsg = ''
if topdir is not None:
@@ -224,7 +225,8 @@ def mbox_to_am(mboxfile, cmdargs):
cleanmsg = ' (best guess: %s)' % tag
logger.critical(' Base: not found%s', cleanmsg)
- logger.critical(' git am %s', am_filename)
+ if cmdargs.outdir != '-':
+ logger.critical(' git am %s', am_filename)
am_mbx.close()
if cmdargs.outdir == '-':