diff options
author | Jeff King <peff@peff.net> | 2025-03-18 01:41:22 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-03-18 12:21:26 -0700 |
commit | aab0f899d9349bed824bf545b7398ab16c27a204 (patch) | |
tree | 16eb4fbbc762473684498e3692822ec714c487d9 /builtin/commit.c | |
parent | c834d1a7cef9b29d440af9369d253dab902238cb (diff) |
fetch: don't ask for remote HEAD if followRemoteHEAD is "never"
When we are going to consider updating the refs/remotes/*/HEAD symref,
we have to ask the remote side where its HEAD points. But if we know
that the feature is disabled by config, we don't need to bother!
This saves a little bit of work and network communication for the
server. And even a little bit of effort on the client, as our local
set_head() function did a bit of work matching the remote HEAD before
realizing that we're not going to do anything with it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions