Skip to content

Commit 847b372

Browse files
phil-blaingitster
authored andcommitted
fetch, pull doc: correct description of '--set-upstream'
The '--set-upstream' option to `git fetch` (which is also accepted by `git pull` and passed through to the underlying `git fetch`) allows setting the upstream configuration for the current branch. This was added in 24bc1a1 (pull, fetch: add --set-upstream option, 2019-08-19). However, the documentation for that option describes its action as 'If the remote is fetched successfully, pull and add upstream (tracking) reference [...]', which is wrong because this option does not cause neither `git fetch` nor `git pull` to pull: `git fetch` does not pull and `git pull` always pulls. Fix the description of that option. Signed-off-by: Philippe Blain <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 47ae905 commit 847b372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/fetch-options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ ifndef::git-pull[]
186186
endif::git-pull[]
187187

188188
--set-upstream::
189-
If the remote is fetched successfully, pull and add upstream
189+
If the remote is fetched successfully, add upstream
190190
(tracking) reference, used by argument-less
191191
linkgit:git-pull[1] and other commands. For more information,
192192
see `branch.<name>.merge` and `branch.<name>.remote` in

0 commit comments

Comments
 (0)