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 optionmain
commit
644aed8921
|
|
@ -1012,7 +1012,7 @@ static int cmd_config_set(int argc, const char **argv, const char *prefix,
|
|||
argv[0], comment, value);
|
||||
if (ret == CONFIG_NOTHING_SET)
|
||||
error(_("cannot overwrite multiple values with a single value\n"
|
||||
" Use a regexp, --add or --replace-all to change %s."), argv[0]);
|
||||
" Use --value=<pattern>, --append or --all to change %s."), argv[0]);
|
||||
}
|
||||
|
||||
location_options_release(&location_opts);
|
||||
|
|
|
|||
Loading…
Reference in New Issue