Skip to content

Commit

Permalink
Make git config variable names case-insensitive
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Torvalds authored and Junio C Hamano committed Oct 12, 2005
1 parent e1b1039 commit 128af9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 128af9d

Please sign in to comment.