From 7e1105244202d01ddf1de990f215418b01281bcf Mon Sep 17 00:00:00 2001 From: Ossi Herrala Date: Fri, 17 Apr 2015 17:50:10 +0300 Subject: [PATCH] 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 Reviewed-by: Jeff King Signed-off-by: Junio C Hamano --- builtin/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/config.c b/builtin/config.c index 9346894240..05cf691554 100644 --- a/builtin/config.c +++ b/builtin/config.c @@ -463,9 +463,9 @@ static char *default_user_config(void) struct strbuf buf = STRBUF_INIT; strbuf_addf(&buf, _("# This is Git's per-user configuration file.\n" - "[core]\n" + "[user]\n" "# Please adapt and uncomment the following lines:\n" - "# user = %s\n" + "# name = %s\n" "# email = %s\n"), ident_default_name(), ident_default_email()); -- 2.11.4.GIT