diff options
author | Joey Hess <joey@kitenet.net> | 2010-07-26 13:30:45 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-07-26 13:30:45 -0400 |
commit | aa78c142b8fdc44e480f7cec0cc444680a1f2f46 (patch) | |
tree | f8d391ad906fc4ea7aa87e3e0c80dc379de5b830 /IkiWiki | |
parent | dd9d117894952efb23c8b444ae27672571d6548a (diff) | |
download | ikiwiki-aa78c142b8fdc44e480f7cec0cc444680a1f2f46.tar ikiwiki-aa78c142b8fdc44e480f7cec0cc444680a1f2f46.tar.gz |
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')
-rw-r--r-- | IkiWiki/Plugin/git.pm | 4 |
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}, |