summaryrefslogtreecommitdiff
path: root/submodule-config.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2017-03-14 15:14:40 -0700
committerJunio C Hamano <gitster@pobox.com>2017-03-15 11:26:08 -0700
commit5ea304896e1e2bfbf104c4098df70f93b5952cfa (patch)
tree088b0b6dbe11c057313cab1a37cf645dd75d65e8 /submodule-config.c
parent6ebdac1bab966b720d776aa43ca188fe378b1f4b (diff)
downloadgit-5ea304896e1e2bfbf104c4098df70f93b5952cfa.tar.gz
submodule-config: correct error reporting for invalid ignore valuesb/submodule-config-parse-ignore-fix
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 <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule-config.c')
-rw-r--r--submodule-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/submodule-config.c b/submodule-config.c
index 098085be69..38c25c9938 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);