Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: git_cl.py

Issue 2352393003: Change usage of deprecated flag. (Closed)
Patch Set: Address iannucci's comments. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index 1b016d46137da6b67efc7bdfdf52dac0ea0e9c8c..439e38874b831fac699a1636287ab3e75933878c 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1375,8 +1375,8 @@ class Changelist(object):
('\nFailed to diff against upstream branch %s\n\n'
'This branch probably doesn\'t exist anymore. To reset the\n'
'tracking branch, please run\n'
- ' git branch --set-upstream %s trunk\n'
- 'replacing trunk with origin/master or the relevant branch') %
+ ' git branch --set-upstream-to origin/master %s\n'
+ 'or replace origin/master with the relevant branch') %
(upstream_branch, self.GetBranch()))
issue = self.GetIssue()
@@ -4869,7 +4869,7 @@ def CMDupstream(parser, args):
if args:
# One arg means set upstream branch.
branch = cl.GetBranch()
- RunGit(['branch', '--set-upstream', branch, args[0]])
+ RunGit(['branch', '--set-upstream-to', args[0], branch])
cl = Changelist()
print('Upstream branch set to %s' % (cl.GetUpstreamBranch(),))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698