allow "config hooks.emailprefox = '[%GL_REPO]'" and such
This commit is contained in:
parent
06eb523164
commit
61c4793237
|
@ -476,6 +476,7 @@ sub setup_git_configs
|
||||||
next if $key =~ /^gitolite-options\./;
|
next if $key =~ /^gitolite-options\./;
|
||||||
if ($value ne "") {
|
if ($value ne "") {
|
||||||
$value =~ s/^['"](.*)["']$/$1/;
|
$value =~ s/^['"](.*)["']$/$1/;
|
||||||
|
$value =~ s/%GL_REPO/$ENV{GL_REPO}/;
|
||||||
system("git", "config", $key, $value);
|
system("git", "config", $key, $value);
|
||||||
} else {
|
} else {
|
||||||
system("git", "config", "--unset-all", $key);
|
system("git", "config", "--unset-all", $key);
|
||||||
|
|
Loading…
Reference in a new issue