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>
Ossi Herrala committed
Apr 17, 2015 at 17:50 UTC
7e1105244202d01ddf1de990f215418b01281bcf
1 file changed
+2
-2
builtin/config.c
+2
-2
@@ -463,9 +463,9 @@ static char *default_user_config(void)
463
struct strbuf buf = STRBUF_INIT;
464
strbuf_addf(&buf,
465
_("# This is Git's per-user configuration file.\n"
466
- "[core]\n"
466
+ "[user]\n"
467
"# Please adapt and uncomment the following lines:\n"
468
- "# user = %s\n"
468
+ "# name = %s\n"
469
"# email = %s\n"),
470
ident_default_name(),
471
ident_default_email());