From 057506b73f094e18682a3f5784eb37761ee83a8e Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Fri, 6 Apr 2012 00:06:17 +0530 Subject: [PATCH] remove quotes around option values for example, this now works (it used to save the quotes also) option mirror.master = "ilh-95" --- src/Gitolite/Conf.pm | 1 + src/triggers/post-compile/update-git-configs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gitolite/Conf.pm b/src/Gitolite/Conf.pm index 30261aa..a5bda56 100644 --- a/src/Gitolite/Conf.pm +++ b/src/Gitolite/Conf.pm @@ -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; diff --git a/src/triggers/post-compile/update-git-configs b/src/triggers/post-compile/update-git-configs index 96e97db..79f9ad8 100755 --- a/src/triggers/post-compile/update-git-configs +++ b/src/triggers/post-compile/update-git-configs @@ -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 {