diff options
author | Shawn O. Pearce <sop@google.com> | 2008-11-24 15:51:25 -0800 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2008-11-24 15:51:25 -0800 |
commit | e92ceebde0034ad045e12b8241045d701383e681 (patch) | |
tree | aa604c3a12d8e7908823a40f877699188f927d15 /subcmds/upload.py | |
parent | 03eaf07ec6aa7e99a0444ac1ec708b2a5f7cbbf5 (diff) | |
download | git-repo-e92ceebde0034ad045e12b8241045d701383e681.tar.gz |
Fix upload --replace after it was broken when --review,--cc was addedv1.4.1
Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r-- | subcmds/upload.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index 49d00187..5e36db61 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
@@ -151,7 +151,7 @@ with the code review system, or the upload will fail. | |||
151 | _die("nothing uncommented for upload") | 151 | _die("nothing uncommented for upload") |
152 | self._UploadAndReport(todo, people) | 152 | self._UploadAndReport(todo, people) |
153 | 153 | ||
154 | def _ReplaceBranch(self, project): | 154 | def _ReplaceBranch(self, project, people): |
155 | branch = project.CurrentBranch | 155 | branch = project.CurrentBranch |
156 | if not branch: | 156 | if not branch: |
157 | print >>sys.stdout, "no branches ready for upload" | 157 | print >>sys.stdout, "no branches ready for upload" |
@@ -247,7 +247,7 @@ with the code review system, or the upload will fail. | |||
247 | print >>sys.stderr, \ | 247 | print >>sys.stderr, \ |
248 | 'error: --replace requires exactly one project' | 248 | 'error: --replace requires exactly one project' |
249 | sys.exit(1) | 249 | sys.exit(1) |
250 | self._ReplaceBranch(project_list[0]) | 250 | self._ReplaceBranch(project_list[0], people) |
251 | return | 251 | return |
252 | 252 | ||
253 | for project in project_list: | 253 | for project in project_list: |