From: Matt Hunter Date: Fri, 19 Jun 2026 09:44:24 +0000 (-0400) Subject: fetch: return 0 on known git_fetch_config X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6ac26e0137c0443c5840d6485216a60e3d3c5a2;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin/fetch.c b/builtin/fetch.c 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);