From 5ea304896e1e2bfbf104c4098df70f93b5952cfa Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Tue, 14 Mar 2017 15:14:40 -0700 Subject: submodule-config: correct error reporting for invalid ignore value As 'var' contains the whole value we get error messages that repeat the section and key currently: warning: Invalid parameter 'true' for config option 'submodule.submodule.plugins/hooks.ignore.ignore' Fix this by only giving the section name in the warning. Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- submodule-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodule-config.c b/submodule-config.c index 098085be6..38c25c993 100644 --- a/submodule-config.c +++ b/submodule-config.c @@ -331,7 +331,7 @@ static int parse_config(const char *var, const char *value, void *data) strcmp(value, "all") && strcmp(value, "none")) warning("Invalid parameter '%s' for config option " - "'submodule.%s.ignore'", value, var); + "'submodule.%s.ignore'", value, name.buf); else { free((void *) submodule->ignore); submodule->ignore = xstrdup(value); -- cgit v1.2.1