project: Preserve stderr on upload

A previous change captured stderr when uploading git projects. This
change ensures stderr is sent to stderr.

Bug: b/297097597
Change-Id: I8314e1017d2a42b7b655fe43ce3c312d397894ca
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/384134
Reviewed-by: Mike Frysinger <vapier@google.com>
Commit-Queue: Jason Chang <jasonnc@google.com>
Tested-by: Jason Chang <jasonnc@google.com>
Reviewed-by: Sam Saccone <samccone@google.com>
This commit is contained in:
Jason Chang 2023-08-25 10:31:04 -07:00 committed by LUCI
parent 1dbf8b4346
commit 1e9f7b9e9e

View File

@ -1182,9 +1182,7 @@ class Project(object):
ref_spec = ref_spec + "%" + ",".join(opts) ref_spec = ref_spec + "%" + ",".join(opts)
cmd.append(ref_spec) cmd.append(ref_spec)
GitCommand( GitCommand(self, cmd, bare=True, verify_command=True).Wait()
self, cmd, bare=True, capture_stderr=True, verify_command=True
).Wait()
if not dryrun: if not dryrun:
msg = "posted to %s for %s" % (branch.remote.review, dest_branch) msg = "posted to %s for %s" % (branch.remote.review, dest_branch)