aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaram@atc.tcs.com>2012-03-20 22:53:21 +0530
committerSitaram Chamarty <sitaram@atc.tcs.com>2012-03-20 22:53:21 +0530
commita8a3792759f31200334da0b545653bd1f06e506b (patch)
tree14249bffa0f68c1a72f0da095f375e74994fd115
parentallow "config hooks.emailprefox = '[%GL_REPO]'" and such (diff)
downloadgitolite-gentoo-a8a3792759f31200334da0b545653bd1f06e506b.tar.gz
gitolite-gentoo-a8a3792759f31200334da0b545653bd1f06e506b.tar.bz2
gitolite-gentoo-a8a3792759f31200334da0b545653bd1f06e506b.zip
(oopsies!) minor bug in a hurriedly written one-liner
pretty bad "bug percentage per line of code" though!
-rw-r--r--src/gitolite.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gitolite.pm b/src/gitolite.pm
index 3553c47..8120526 100644
--- a/src/gitolite.pm
+++ b/src/gitolite.pm
@@ -476,7 +476,7 @@ sub setup_git_configs
next if $key =~ /^gitolite-options\./;
if ($value ne "") {
$value =~ s/^['"](.*)["']$/$1/;
- $value =~ s/%GL_REPO/$ENV{GL_REPO}/;
+ $value =~ s/%GL_REPO/$repo/;
system("git", "config", $key, $value);
} else {
system("git", "config", "--unset-all", $key);