From 61c47932371c71a8436e7c0a9b46ad86bd003e1e Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Tue, 20 Mar 2012 10:55:57 +0530 Subject: [PATCH] allow "config hooks.emailprefox = '[%GL_REPO]'" and such --- src/gitolite.pm | 1 + 1 file changed, 1 insertion(+) 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);