fetch: return 0 on known git_fetch_config

The git config callback for git-fetch should only forward calls to git_default_config when an unknown key is given. Prevent this in the case of 'fetch.output' by returning '0', as the other known keys do. Signed-off-by: Matt Hunter <m@lfurio.us> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Matt Hunter committed Jun 19, 2026 at 05:44 UTC c6ac26e0137c0443c5840d6485216a60e3d3c5a2
1 file changed +1
builtin/fetch.c
+1
@@ -171,6 +171,7 @@ static int git_fetch_config(const char *k, const char *v,
171 else
172 die(_("invalid value for '%s': '%s'"),
173 "fetch.output", v);
174 + return 0;
175 }
176
177 return git_default_config(k, v, ctx, cb);