]> git.ipfire.org Git - thirdparty/git.git/commitdiff
fetch: return 0 on known git_fetch_config
authorMatt Hunter <m@lfurio.us>
Fri, 19 Jun 2026 09:44:24 +0000 (05:44 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Jun 2026 16:19:35 +0000 (09:19 -0700)
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>
builtin/fetch.c

index 9a45e1e7a44de43abbccbde6b906155427e7c227..1036e8edbc59ae710fe415c641279e54952f50a7 100644 (file)
@@ -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);