mirror of
https://github.com/Dev-Wiki/git-repo.git
synced 2025-11-14 15:01:17 +08:00
Fix upload --replace after it was broken when --review,--cc was added
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -151,7 +151,7 @@ with the code review system, or the upload will fail.
|
|||||||
_die("nothing uncommented for upload")
|
_die("nothing uncommented for upload")
|
||||||
self._UploadAndReport(todo, people)
|
self._UploadAndReport(todo, people)
|
||||||
|
|
||||||
def _ReplaceBranch(self, project):
|
def _ReplaceBranch(self, project, people):
|
||||||
branch = project.CurrentBranch
|
branch = project.CurrentBranch
|
||||||
if not branch:
|
if not branch:
|
||||||
print >>sys.stdout, "no branches ready for upload"
|
print >>sys.stdout, "no branches ready for upload"
|
||||||
@@ -247,7 +247,7 @@ with the code review system, or the upload will fail.
|
|||||||
print >>sys.stderr, \
|
print >>sys.stderr, \
|
||||||
'error: --replace requires exactly one project'
|
'error: --replace requires exactly one project'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
self._ReplaceBranch(project_list[0])
|
self._ReplaceBranch(project_list[0], people)
|
||||||
return
|
return
|
||||||
|
|
||||||
for project in project_list:
|
for project in project_list:
|
||||||
|
|||||||
Reference in New Issue
Block a user