summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2005-10-11 18:47:34 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-11 18:47:34 -0700
commit128af9d1ef6c26b94d14c4dd0028c5dda8d6dd82 (patch)
tree8123c55979441bf9a3933ca3ece99fb9f9f54e1d /config.c
parente1b10391eabdaaa4c89c53099dd96d5f9d978719 (diff)
downloadgit-128af9d1ef6c26b94d14c4dd0028c5dda8d6dd82.tar.gz
Make git config variable names case-insensitive
They always were meant to be case-insensitive, but I had missed one "tolower()", making that not true. The actual _values_ aren't case-insensitive, of course, although some uses of them may be (ie boolean parsing uses "strcasecmp()" to match against the strings "true" and "false"). Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index cf803580c9..9b7c6f2942 100644
--- a/config.c
+++ b/config.c
@@ -168,7 +168,7 @@ static int git_parse_file(config_fn_t fn)
}
if (!isalpha(c))
break;
- var[baselen] = c;
+ var[baselen] = tolower(c);
if (get_value(fn, var, baselen+1) < 0)
break;
}