remove quotes around option values

for example, this now works (it used to save the quotes also)

    option mirror.master = "ilh-95"
This commit is contained in:
Sitaram Chamarty 2012-04-06 00:06:17 +05:30
parent e1c7e546aa
commit 057506b73f
2 changed files with 1 additions and 1 deletions

View file

@ -58,6 +58,7 @@ sub parse {
}
} elsif ( $line =~ /^config (.+) = ?(.*)/ ) {
my ( $key, $value ) = ( $1, $2 );
$value =~ s/^['"](.*)["']$/$1/;
my @validkeys = split( ' ', ( $rc{GIT_CONFIG_KEYS} || '' ) );
push @validkeys, "gitolite-options\\..*";
my @matched = grep { $key =~ /^$_$/ } @validkeys;

View file

@ -24,7 +24,6 @@ for my $pr (@$lpr) {
while ( my ( $key, $value ) = each( %{$gc} ) ) {
next if $key =~ /^gitolite-options\./;
if ( $value ne "" ) {
$value =~ s/^['"](.*)["']$/$1/;
$value =~ s/%GL_REPO/$pr/g;
system( "git", "config", "--file", "$RB/$pr.git/config", $key, $value );
} else {