diff options
author | 2012-03-20 10:55:57 +0530 | |
---|---|---|
committer | 2012-03-20 10:55:57 +0530 | |
commit | 61c47932371c71a8436e7c0a9b46ad86bd003e1e (patch) | |
tree | 41a5789c7b639d5463b1b0208d2338dbaa2c0481 | |
parent | Be compatible with older versions of File::Path (diff) | |
download | gitolite-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.pm | 1 |
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); |