summaryrefslogtreecommitdiffstats
path: root/subcmds/upload.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2020-11-10 01:09:51 -0500
committerMike Frysinger <vapier@google.com>2020-11-16 23:13:02 +0000
commit160748f828f0fdaf09d3be86c73840d9e28eccdb (patch)
treedcbd3969cf0f767f341465e3af1398e1b96534d7 /subcmds/upload.py
parent6e89c965f40860f93389b919b4d7f190beb707f7 (diff)
downloadgit-repo-160748f828f0fdaf09d3be86c73840d9e28eccdb.tar.gz
upload: improve tip for fixing upload remote
Instead of assuming the repo client is tracking the "master" branch of the manifest repo, use the existing info we have to display the right info to the user. Bug: https://crbug.com/gerrit/13339 Change-Id: I8b265f4b2e075fdc41909b1f3dff9aee87384353 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/287279 Reviewed-by: Michael Mortensen <mmortensen@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r--subcmds/upload.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py
index cc6ccf74..f441aae4 100644
--- a/subcmds/upload.py
+++ b/subcmds/upload.py
@@ -554,10 +554,10 @@ Gerrit Code Review: https://www.gerritcodereview.com/
554 avail = [up_branch] 554 avail = [up_branch]
555 else: 555 else:
556 avail = None 556 avail = None
557 print('ERROR: Current branch (%s) not uploadable. ' 557 print('repo: error: Unable to upload branch "%s". '
558 'You may be able to type ' 558 'You might be able to fix the branch by running:\n'
559 '"git branch --set-upstream-to m/master" to fix ' 559 ' git branch --set-upstream-to m/%s' %
560 'your branch.' % str(cbr), 560 (str(cbr), self.manifest.branch),
561 file=sys.stderr) 561 file=sys.stderr)
562 else: 562 else:
563 avail = project.GetUploadableBranches(branch) 563 avail = project.GetUploadableBranches(branch)