diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-04-17 10:28:17 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-17 10:28:17 -0700 |
| commit | b45113f5818b26bf22b85988f9ef7ff2da06d4a1 (patch) | |
| tree | c7fa852ecfd618919e8888eaa2c3c0d314f2fbd8 /Documentation/config | |
| parent | c152ae3ef50dc7bbbf5089571df5bba404a96e0d (diff) | |
| parent | f9356f9cb4c2c9c6baab30c1a8579445fddfe502 (diff) | |
| download | git-b45113f5818b26bf22b85988f9ef7ff2da06d4a1.tar.xz | |
Merge branch 'jk/fetch-follow-remote-head-fix'
"git fetch [<remote>]" with only the configured fetch refspec
should be the only thing to update refs/remotes/<remote>/HEAD,
but the code was overly eager to do so in other cases.
* jk/fetch-follow-remote-head-fix:
fetch: make set_head() call easier to read
fetch: don't ask for remote HEAD if followRemoteHEAD is "never"
fetch: only respect followRemoteHEAD with configured refspecs
Diffstat (limited to 'Documentation/config')
| -rw-r--r-- | Documentation/config/remote.adoc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/config/remote.adoc b/Documentation/config/remote.adoc index 25fe219d10..91e46f66f5 100644 --- a/Documentation/config/remote.adoc +++ b/Documentation/config/remote.adoc @@ -108,7 +108,8 @@ the values inherited from a lower priority configuration files (e.g. `$HOME/.gitconfig`). remote.<name>.followRemoteHEAD:: - How linkgit:git-fetch[1] should handle updates to `remotes/<name>/HEAD`. + How linkgit:git-fetch[1] should handle updates to `remotes/<name>/HEAD` + when fetching using the configured refspecs of a remote. The default value is "create", which will create `remotes/<name>/HEAD` if it exists on the remote, but not locally; this will not touch an already existing local reference. Setting it to "warn" will print |
