Skip to content

Commit

Permalink
Merge branch 'oh/fix-config-default-user-name-section' into maint-2.3
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Junio C Hamano committed May 11, 2015
2 parents 13ec221 + 7e11052 commit 1add9ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 1add9ae

Please sign in to comment.