diff options
| -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 b47b37b8..153b3ebe 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
| @@ -262,7 +262,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ | |||
| 262 | except: | 262 | except: |
| 263 | return "" | 263 | return "" |
| 264 | 264 | ||
| 265 | def _ReplaceBranch(self, project, people): | 265 | def _ReplaceBranch(self, opt, project, people): |
| 266 | branch = project.CurrentBranch | 266 | branch = project.CurrentBranch |
| 267 | if not branch: | 267 | if not branch: |
| 268 | print >>sys.stdout, "no branches ready for upload" | 268 | print >>sys.stdout, "no branches ready for upload" |
| @@ -388,7 +388,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ | |||
| 388 | print >>sys.stderr, \ | 388 | print >>sys.stderr, \ |
| 389 | 'error: --replace requires exactly one project' | 389 | 'error: --replace requires exactly one project' |
| 390 | sys.exit(1) | 390 | sys.exit(1) |
| 391 | self._ReplaceBranch(project_list[0], people) | 391 | self._ReplaceBranch(opt, project_list[0], people) |
| 392 | return | 392 | return |
| 393 | 393 | ||
| 394 | for project in project_list: | 394 | for project in project_list: |
