diff options
author | Stefan Beller <sbeller@google.com> | 2017-03-14 23:14:40 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-15 19:26:08 +0100 |
commit | 5ea304896e1e2bfbf104c4098df70f93b5952cfa (patch) | |
tree | 088b0b6dbe11c057313cab1a37cf645dd75d65e8 /submodule-config.c | |
parent | Git 2.10 (diff) | |
download | git-5ea304896e1e2bfbf104c4098df70f93b5952cfa.tar.xz git-5ea304896e1e2bfbf104c4098df70f93b5952cfa.zip |
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 <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | submodule-config.c | 2 |
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); |