Files
git/builtin
Colin Hinton 86129fddb7 fetch.c: defer fetch.followRemoteHEAD validation
The value of the fetch.followRemoteHEAD configuration variable is
validated while the configuration file is being parsed, which
produces a warning even when this particular "git fetch" invocation
will never consult it.

Store the raw config string instead, and resolve/validate it lazily
at the one place in do_fetch() that actually uses it, so a mistyped
value only warns, and a missing value only dies, when this fetch
would have consulted it.

remote.c's handle_config() has the same problem for
remote.<name>.followRemoteHEAD, but is left unaddressed here since
it touches shared remote-parsing infrastructure used well beyond
fetch. Leave a NEEDSWORK comment at remote.c:handle_config()
that has a defect similar to what is fixed by this patch,
so the remaining scope is easy to find for a follow-up patch.

Signed-off-by: Colin Hinton <colinlewishinton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-10-06 09:20:07 -07:00
..
2026-09-07 09:32:06 -07:00
2026-04-10 07:58:53 -07:00
2025-09-29 11:40:35 -07:00
2026-10-01 11:26:40 -07:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:18 -07:00
2025-08-22 13:13:20 -07:00
2026-09-15 11:07:37 -07:00
2026-10-01 11:26:39 -07:00
2026-10-01 11:26:40 -07:00
2026-07-13 08:27:27 -07:00
2026-07-30 10:32:03 -07:00
2026-09-14 15:36:48 -07:00
2026-03-31 20:43:14 -07:00
2026-07-07 10:49:40 -07:00
2025-07-23 08:15:18 -07:00
2026-07-07 17:48:57 -07:00
2026-03-31 20:43:14 -07:00
2026-05-06 09:48:28 +09:00
2025-08-21 13:46:59 -07:00