"git config foo.bar = 0" was not working; fixed

(because perl treats 0 as false and I'd not accounted for that)

thanks to idl0r for catching this
This commit is contained in:
Sitaram Chamarty 2011-02-06 06:56:19 +05:30
parent 9b212ed0ef
commit 1c1ae6061d

View file

@ -388,7 +388,7 @@ sub setup_git_configs
my ($repo, $git_configs_p) = @_;
while ( my ($key, $value) = each(%{ $git_configs_p->{$repo} }) ) {
if ($value) {
if ($value ne "") {
$value =~ s/^"(.*)"$/$1/;
system("git", "config", $key, $value);
} else {