aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaram@atc.tcs.com>2012-03-20 10:55:57 +0530
committerSitaram Chamarty <sitaram@atc.tcs.com>2012-03-20 10:55:57 +0530
commit61c47932371c71a8436e7c0a9b46ad86bd003e1e (patch)
tree41a5789c7b639d5463b1b0208d2338dbaa2c0481
parentBe compatible with older versions of File::Path (diff)
downloadgitolite-gentoo-61c47932371c71a8436e7c0a9b46ad86bd003e1e.tar.gz
gitolite-gentoo-61c47932371c71a8436e7c0a9b46ad86bd003e1e.tar.bz2
gitolite-gentoo-61c47932371c71a8436e7c0a9b46ad86bd003e1e.zip
allow "config hooks.emailprefox = '[%GL_REPO]'" and such
-rw-r--r--src/gitolite.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gitolite.pm b/src/gitolite.pm
index ebb5f61..3553c47 100644
--- a/src/gitolite.pm
+++ b/src/gitolite.pm
@@ -476,6 +476,7 @@ sub setup_git_configs
next if $key =~ /^gitolite-options\./;
if ($value ne "") {
$value =~ s/^['"](.*)["']$/$1/;
+ $value =~ s/%GL_REPO/$ENV{GL_REPO}/;
system("git", "config", $key, $value);
} else {
system("git", "config", "--unset-all", $key);