Skip to content

Commit 5ea3048

Browse files
stefanbellergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6ebdac1 commit 5ea3048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

submodule-config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ static int parse_config(const char *var, const char *value, void *data)
331331
strcmp(value, "all") &&
332332
strcmp(value, "none"))
333333
warning("Invalid parameter '%s' for config option "
334-
"'submodule.%s.ignore'", value, var);
334+
"'submodule.%s.ignore'", value, name.buf);
335335
else {
336336
free((void *) submodule->ignore);
337337
submodule->ignore = xstrdup(value);

0 commit comments

Comments
 (0)