(oopsies!) minor bug in a hurriedly written one-liner

pretty bad "bug percentage per line of code" though!
This commit is contained in:
Sitaram Chamarty 2012-03-20 22:53:21 +05:30
parent 61c4793237
commit a8a3792759

View file

@ -476,7 +476,7 @@ sub setup_git_configs
next if $key =~ /^gitolite-options\./; next if $key =~ /^gitolite-options\./;
if ($value ne "") { if ($value ne "") {
$value =~ s/^['"](.*)["']$/$1/; $value =~ s/^['"](.*)["']$/$1/;
$value =~ s/%GL_REPO/$ENV{GL_REPO}/; $value =~ s/%GL_REPO/$repo/;
system("git", "config", $key, $value); system("git", "config", $key, $value);
} else { } else {
system("git", "config", "--unset-all", $key); system("git", "config", "--unset-all", $key);