Skip to content

Commit

Permalink
remove quotes around option values
Browse files Browse the repository at this point in the history
for example, this now works (it used to save the quotes also)

    option mirror.master = "ilh-95"
  • Loading branch information
sitaramc committed Apr 6, 2012
1 parent e1c7e54 commit 057506b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/Gitolite/Conf.pm
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/triggers/post-compile/update-git-configs
Expand Up @@ -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 {
Expand Down

0 comments on commit 057506b

Please sign in to comment.