]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'oh/fix-config-default-user-name-section' into maint-2.3
authorJunio C Hamano <gitster@pobox.com>
Mon, 11 May 2015 21:33:59 +0000 (14:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 May 2015 21:33:59 +0000 (14:33 -0700)
The default $HOME/.gitconfig file created upon "git config --global"
that edits it had incorrectly spelled user.name and user.email
entries in it.

* oh/fix-config-default-user-name-section:
  config: fix settings in default_user_config template

builtin/config.c

index 15a7bea936d667042cef27f83c86a863df2caa8f..73dc2f1024ad986a2421b0c6e9c5845574437d41 100644 (file)
@@ -455,9 +455,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());