Skip to content

Commit a3a4391

Browse files
Michael J Gruberpeff
authored andcommitted
push/pull: adjust missing upstream help text to changed interface
In case of a missing upstream, the git-parse-remote script suggests: If you wish to set tracking information for this branch you can do so with: git branch --set-upstream nsiv2 origin/<branch> But --set-upstream is deprectated. Change the suggestion to: git branch --set-upstream-to=origin/<branch> nsiv2 Reported-by: Jeroen van der Ham <[email protected]> Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent 7e20105 commit a3a4391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-parse-remote.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ See git-${cmd}(1) for details
8080
8181
If you wish to set tracking information for this branch you can do so with:
8282
83-
git branch --set-upstream ${branch_name#refs/heads/} $remote/<branch>
83+
git branch --set-upstream-to=$remote/<branch> ${branch_name#refs/heads/}
8484
"
8585
fi
8686
exit 1

0 commit comments

Comments
 (0)