Skip to content

Commit 644aed8

Browse files
committed
Merge branch 'rs/config-set-multi-error-message-fix'
The error message given by "git config set", when the variable being updated has more than one values defined, used old style "git config" syntax with an incorrect option in its hint, both of which have been corrected. * rs/config-set-multi-error-message-fix: config: fix suggestion for failed set of multi-valued option
2 parents e74a6e0 + df963f0 commit 644aed8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builtin/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ static int cmd_config_set(int argc, const char **argv, const char *prefix,
10121012
argv[0], comment, value);
10131013
if (ret == CONFIG_NOTHING_SET)
10141014
error(_("cannot overwrite multiple values with a single value\n"
1015-
" Use a regexp, --add or --replace-all to change %s."), argv[0]);
1015+
" Use --value=<pattern>, --append or --all to change %s."), argv[0]);
10161016
}
10171017

10181018
location_options_release(&location_opts);

0 commit comments

Comments
 (0)