Skip to content

Commit df963f0

Browse files
rscharfegitster
authored andcommitted
config: fix suggestion for failed set of multi-valued option
The command "git config set <name> <value>" fails for an option that has multiple values. List the "git config set" flags that can be used, instead of old-style "git config" actions. Reported-by: Paul Wintz <pwintz@ucsc.edu> Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent bb5c624 commit df963f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/config.c

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

980980
location_options_release(&location_opts);

0 commit comments

Comments
 (0)