allow "config hooks.emailprefox = '[%GL_REPO]'" and such

This commit is contained in:
Sitaram Chamarty 2012-03-20 10:55:57 +05:30
parent 06eb523164
commit 61c4793237

View file

@ -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);