[PATCH v3 5/8] fetch: return 0 on known git_fetch_config
From: Matt Hunter <hidden>
Date: 2026-06-19 09:48:29
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Matt Hunter <hidden>
Date: 2026-06-19 09:48:29
Subsystem:
the rest · Maintainer:
Linus Torvalds
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 <redacted> --- builtin/fetch.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/builtin/fetch.c b/builtin/fetch.c
index 9a45e1e7a44d..1036e8edbc59 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);
--
2.54.0