From: Disc Magnet <discmagnet@gmail.com>
To: git@vger.kernel.org
Subject: Can't assign user.name to "E F" in git config
Date: Tue, 30 Mar 2010 02:02:55 +0530 [thread overview]
Message-ID: <308d4701003291332s500cbbci68e10a784ac1aa81@mail.gmail.com> (raw)
I've never done a git init and I don't have any .git directory in the
current directory. I get warnings in the following example. Moreover,
I can't assign user.name to "E F".
humpty@wall:~/work$ rm ~/.gitconfig
humpty@wall:~/work$ git config --global user.name A B
humpty@wall:~/work$ git config --global user.name C D
humpty@wall:~/work$ git config --global user.name "E F"
warning: user.name has multiple values
humpty@wall:~/work$ git config -l
user.name=A
user.name=C
humpty@wall:~/work$ cat ~/.gitconfig
[user]
name = A
name = C
However, everything works fine here.
humpty@wall:~/work$ rm ~/.gitconfig
humpty@wall:~/work$ git config --global user.name A
humpty@wall:~/work$ git config --global user.name C
humpty@wall:~/work$ git config --global user.name "E F"
humpty@wall:~/work$ git config -l
user.name=E F
humpty@wall:~/work$ cat ~/.gitconfig
[user]
name = E F
The same behavior can be reproduced after doing git init and by
removing the --global option.
Is this an expected behavior or is it a bug?
next reply other threads:[~2010-03-29 20:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-29 20:32 Disc Magnet [this message]
2010-03-29 20:55 ` Can't assign user.name to "E F" in git config Avery Pennarun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=308d4701003291332s500cbbci68e10a784ac1aa81@mail.gmail.com \
--to=discmagnet@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).