summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-07-26 13:30:45 -0400
committerJoey Hess <joey@kitenet.net>2010-07-26 13:30:45 -0400
commitaa78c142b8fdc44e480f7cec0cc444680a1f2f46 (patch)
treef8d391ad906fc4ea7aa87e3e0c80dc379de5b830 /IkiWiki/Plugin
parentdd9d117894952efb23c8b444ae27672571d6548a (diff)
avoid generating receive wrapper if there are no untrusted committers
The wrapper is pointless in that configuration. Also, the code for it doesn't compile w/o untrusted commiters to test. :)
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/git.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm
index 899ac4a85..d342a7398 100644
--- a/IkiWiki/Plugin/git.pm
+++ b/IkiWiki/Plugin/git.pm
@@ -46,7 +46,9 @@ sub checkconfig () {
}
if (defined $config{git_test_receive_wrapper} &&
- length $config{git_test_receive_wrapper}) {
+ length $config{git_test_receive_wrapper} &&
+ defined $config{untrusted_committers} &&
+ @{$config{untrusted_committers}}) {
push @{$config{wrappers}}, {
test_receive => 1,
wrapper => $config{git_test_receive_wrapper},