diff options
author | Chirayu Desai <cdesai@cyanogenmod.org> | 2013-06-24 14:02:12 +0530 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-06-28 00:29:11 +0000 |
commit | 610d3c4e46471c8db555026969bb3e2eb75102f0 (patch) | |
tree | 379579d96906f0f71538defffa24a0d28b72b189 | |
parent | 033a7e91de4e15c7da96f4ab21454c5f6e3b2fb6 (diff) | |
download | git-repo-610d3c4e46471c8db555026969bb3e2eb75102f0.tar.gz |
upload: fix display of destination branch for SingleBranch
The command `repo upload --cbr -D <some branch>` will display
the default revision, and not the actual destination branch.
Fix that and display the branch to which the change will be
uploaded to.
Change-Id: I712ed0871c819dce6774c47254dac4efec4532e0
-rw-r--r-- | subcmds/upload.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index fc17670c..f5833dd3 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
@@ -189,7 +189,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ | |||
189 | date = branch.date | 189 | date = branch.date |
190 | commit_list = branch.commits | 190 | commit_list = branch.commits |
191 | 191 | ||
192 | destination = project.dest_branch or project.revisionExpr | 192 | destination = opt.dest_branch or project.dest_branch or project.revisionExpr |
193 | print('Upload project %s/ to remote branch %s:' % (project.relpath, destination)) | 193 | print('Upload project %s/ to remote branch %s:' % (project.relpath, destination)) |
194 | print(' branch %s (%2d commit%s, %s):' % ( | 194 | print(' branch %s (%2d commit%s, %s):' % ( |
195 | name, | 195 | name, |