Code

git-svn: don't sanitize remote names in config
authorEric Wong <normalperson@yhbt.net>
Sun, 29 Jun 2008 03:40:32 +0000 (20:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 29 Jun 2008 03:55:45 +0000 (20:55 -0700)
commit7829f20f5beabe3e21866ae53109a58370571158
tree14dac108a1ad33e69df09edfa08def0efb2870a9
parent29c70e0b3e3183f86f93500882177d0c74069988
git-svn: don't sanitize remote names in config

The original sanitization code was just taken from the
remotes2config.sh shell script in contrib.

Credit to Avery Pennarun for noticing this mistake, and Junio
for clarifying the rules for config section names:

Junio C Hamano wrote in <7vfxr23s6m.fsf@gitster.siamese.dyndns.org>:

> In
>
>  [foo "bar"] baz = value
>
> foo and baz must be config.c::iskeychar() (and baz must be isalpha()), but
> "bar" can be almost anything.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-svn.perl