[PATCH v3 5/8] fetch: return 0 on known git_fetch_config
- From
Matt Hunter <m@lfurio.us>
- Date
- Jun 19, 2026, 09:44 UTC
- Message-ID
- <20260619094751.2996804-6-m@lfurio.us>
- In-Reply-To
- <20260619094751.2996804-1-m@lfurio.us>
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> --- 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