diff --git a/subcmds/cherry_pick.py b/subcmds/cherry_pick.py index 7bd858b..eecf4e1 100644 --- a/subcmds/cherry_pick.py +++ b/subcmds/cherry_pick.py @@ -60,8 +60,10 @@ def Execute(self, opt, args): capture_stderr=True) status = p.Wait() - print(p.stdout, file=sys.stdout) - print(p.stderr, file=sys.stderr) + if p.stdout: + print(p.stdout.strip(), file=sys.stdout) + if p.stderr: + print(p.stderr.strip(), file=sys.stderr) if status == 0: # The cherry-pick was applied correctly. We just need to edit the