mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
cherry-pick: tighten up output
If stdout or stderr are empty, don't print empty lines. Also trim any trailing lines so we don't show excess ones. Change-Id: I65fcea191e1f725be03c064cb510578632466013 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/343516 Tested-by: Mike Frysinger <vapier@google.com> Reviewed-by: LaMont Jones <lamontjones@google.com>
This commit is contained in:
parent
63a5657ecf
commit
8a54a7eac3
@ -60,8 +60,10 @@ change id will be added.
|
|||||||
capture_stderr=True)
|
capture_stderr=True)
|
||||||
status = p.Wait()
|
status = p.Wait()
|
||||||
|
|
||||||
print(p.stdout, file=sys.stdout)
|
if p.stdout:
|
||||||
print(p.stderr, file=sys.stderr)
|
print(p.stdout.strip(), file=sys.stdout)
|
||||||
|
if p.stderr:
|
||||||
|
print(p.stderr.strip(), file=sys.stderr)
|
||||||
|
|
||||||
if status == 0:
|
if status == 0:
|
||||||
# The cherry-pick was applied correctly. We just need to edit the
|
# The cherry-pick was applied correctly. We just need to edit the
|
||||||
|
Loading…
Reference in New Issue
Block a user