Permalink
Browse files

upload: Fix --replace flag

--replace started to fail due to a Python error, I forgot to pass
through the opt structure to the replace function.

Change-Id: Ifcd7a0c715c3fd9070a4c58208612a626382de35
Signed-off-by: Shawn O. Pearce <sop@google.com>
  • Loading branch information...
1 parent a22f99a commit 60829ba72fe81b1de1c1e9c6e0de486e9e90bddd @spearce spearce committed Jul 16, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 subcmds/upload.py
View
@@ -262,7 +262,7 @@ def _FindGerritChange(self, branch):
except:
return ""
- def _ReplaceBranch(self, project, people):
+ def _ReplaceBranch(self, opt, project, people):
branch = project.CurrentBranch
if not branch:
print >>sys.stdout, "no branches ready for upload"
@@ -388,7 +388,7 @@ def Execute(self, opt, args):
print >>sys.stderr, \
'error: --replace requires exactly one project'
sys.exit(1)
- self._ReplaceBranch(project_list[0], people)
+ self._ReplaceBranch(opt, project_list[0], people)
return
for project in project_list:

0 comments on commit 60829ba

Please sign in to comment.