summaryrefslogtreecommitdiffstats
path: root/subcmds/upload.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r--subcmds/upload.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py
index 8d801e08..7d460ddf 100644
--- a/subcmds/upload.py
+++ b/subcmds/upload.py
@@ -351,13 +351,13 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
351 merge_branch = self._GetMergeBranch(branch.project) 351 merge_branch = self._GetMergeBranch(branch.project)
352 full_dest = 'refs/heads/%s' % destination 352 full_dest = 'refs/heads/%s' % destination
353 if not opt.dest_branch and merge_branch and merge_branch != full_dest: 353 if not opt.dest_branch and merge_branch and merge_branch != full_dest:
354 print('merge branch %s does not match destination branch %s' 354 print('merge branch %s does not match destination branch %s'
355 % (merge_branch, full_dest)) 355 % (merge_branch, full_dest))
356 print('skipping upload.') 356 print('skipping upload.')
357 print('Please use `--destination %s` if this is intentional' 357 print('Please use `--destination %s` if this is intentional'
358 % destination) 358 % destination)
359 branch.uploaded = False 359 branch.uploaded = False
360 continue 360 continue
361 361
362 branch.UploadForReview(people, auto_topic=opt.auto_topic, draft=opt.draft, dest_branch=destination) 362 branch.UploadForReview(people, auto_topic=opt.auto_topic, draft=opt.draft, dest_branch=destination)
363 branch.uploaded = True 363 branch.uploaded = True