diff options
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r-- | subcmds/upload.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index 9ad55d79..56212408 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
@@ -349,8 +349,9 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ | |||
349 | 349 | ||
350 | # Make sure our local branch is not setup to track a different remote branch | 350 | # Make sure our local branch is not setup to track a different remote branch |
351 | merge_branch = self._GetMergeBranch(branch.project) | 351 | merge_branch = self._GetMergeBranch(branch.project) |
352 | full_dest = 'refs/heads/%s' % destination | 352 | if destination: |
353 | if not opt.dest_branch and merge_branch and merge_branch != full_dest: | 353 | full_dest = 'refs/heads/%s' % destination |
354 | if not opt.dest_branch and merge_branch and merge_branch != full_dest: | ||
354 | print('merge branch %s does not match destination branch %s' | 355 | print('merge branch %s does not match destination branch %s' |
355 | % (merge_branch, full_dest)) | 356 | % (merge_branch, full_dest)) |
356 | print('skipping upload.') | 357 | print('skipping upload.') |