config variables should not be restricted to double quoted strings

previously, these two would produce different results

    config aa.bb = 'true'   # config file line includes single quotes
    config aa.bb = "true"   # config file line does not include any quotes

Now the former will also behave like the latter.
This commit is contained in:
Sitaram Chamarty 2011-08-27 10:50:53 +05:30
parent 2eee4d627a
commit d01f6b1dbb

View file

@ -439,7 +439,7 @@ sub setup_git_configs
my $rc = $rch{$seq};
while ( my ($key, $value) = each(%{ $rc }) ) {
if ($value ne "") {
$value =~ s/^"(.*)"$/$1/;
$value =~ s/^['"](.*)["']$/$1/;
system("git", "config", $key, $value);
} else {
system("git", "config", "--unset-all", $key);