mirror of
https://github.com/git/git.git
synced 2024-11-25 02:44:48 +08:00
config: fix settings in default_user_config template
The name (not user) and email setting should be in config section "user" and not in "core" as documented in Documentation/config.txt. Signed-off-by: Ossi Herrala <oherrala@gmail.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
9830534e40
commit
7e11052442
@ -463,9 +463,9 @@ static char *default_user_config(void)
|
|||||||
struct strbuf buf = STRBUF_INIT;
|
struct strbuf buf = STRBUF_INIT;
|
||||||
strbuf_addf(&buf,
|
strbuf_addf(&buf,
|
||||||
_("# This is Git's per-user configuration file.\n"
|
_("# This is Git's per-user configuration file.\n"
|
||||||
"[core]\n"
|
"[user]\n"
|
||||||
"# Please adapt and uncomment the following lines:\n"
|
"# Please adapt and uncomment the following lines:\n"
|
||||||
"# user = %s\n"
|
"# name = %s\n"
|
||||||
"# email = %s\n"),
|
"# email = %s\n"),
|
||||||
ident_default_name(),
|
ident_default_name(),
|
||||||
ident_default_email());
|
ident_default_email());
|
||||||
|
Loading…
Reference in New Issue
Block a user