]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jk/fetch-follow-remote-head-fix'
authorJunio C Hamano <gitster@pobox.com>
Thu, 17 Apr 2025 17:28:17 +0000 (10:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Apr 2025 17:28:17 +0000 (10:28 -0700)
"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

1  2 
builtin/fetch.c
t/t5505-remote.sh
t/t5510-fetch.sh

diff --cc builtin/fetch.c
Simple merge
Simple merge
Simple merge