"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:
parent
9b212ed0ef
commit
1c1ae6061d
|
@ -388,7 +388,7 @@ sub setup_git_configs
|
||||||
my ($repo, $git_configs_p) = @_;
|
my ($repo, $git_configs_p) = @_;
|
||||||
|
|
||||||
while ( my ($key, $value) = each(%{ $git_configs_p->{$repo} }) ) {
|
while ( my ($key, $value) = each(%{ $git_configs_p->{$repo} }) ) {
|
||||||
if ($value) {
|
if ($value ne "") {
|
||||||
$value =~ s/^"(.*)"$/$1/;
|
$value =~ s/^"(.*)"$/$1/;
|
||||||
system("git", "config", $key, $value);
|
system("git", "config", $key, $value);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue