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
main
Junio C Hamano 2025-12-05 14:49:59 +09:00
commit 644aed8921
1 changed files with 1 additions and 1 deletions

View File

@ -1012,7 +1012,7 @@ static int cmd_config_set(int argc, const char **argv, const char *prefix,
argv[0], comment, value); argv[0], comment, value);
if (ret == CONFIG_NOTHING_SET) if (ret == CONFIG_NOTHING_SET)
error(_("cannot overwrite multiple values with a single value\n" 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); location_options_release(&location_opts);