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>
Linus Torvalds committed
Oct 11, 2005 at 18:47 UTC
128af9d1ef6c26b94d14c4dd0028c5dda8d6dd82
1 file changed
+1
-1
config.c
+1
-1
@@ -168,7 +168,7 @@ static int git_parse_file(config_fn_t fn)
168
}
169
if (!isalpha(c))
170
break;
171
- var[baselen] = c;
171
+ var[baselen] = tolower(c);
172
if (get_value(fn, var, baselen+1) < 0)
173
break;
174
}