| 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(),))
|
|
|
|
|