mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Paper bag fix repo 1.3's "repo upload" without --replace
If we aren't doing a replacement we do not have any replace rules, so we cannot iterate over them. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
c99883fee9
commit
34d237fbfb
@ -114,6 +114,7 @@ def UploadBundle(project,
|
|||||||
req.dest_branch = str(dest_branch)
|
req.dest_branch = str(dest_branch)
|
||||||
for c in revlist:
|
for c in revlist:
|
||||||
req.contained_object.append(c)
|
req.contained_object.append(c)
|
||||||
|
if replace_changes:
|
||||||
for change_id,commit_id in replace_changes.iteritems():
|
for change_id,commit_id in replace_changes.iteritems():
|
||||||
r = req.replace.add()
|
r = req.replace.add()
|
||||||
r.change_id = change_id
|
r.change_id = change_id
|
||||||
|
Loading…
Reference in New Issue
Block a user