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
index 9a45e1e7a4..1036e8edbc 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -171,6 +171,7 @@ static int git_fetch_config(const char *k, const char *v,
else
die(_("invalid value for '%s': '%s'"),
"fetch.output", v);
+ return 0;
}
return git_default_config(k, v, ctx, cb);