From aa78c142b8fdc44e480f7cec0cc444680a1f2f46 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 26 Jul 2010 13:30:45 -0400 Subject: [PATCH] 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. :) --- IkiWiki/Plugin/git.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}, -- 2.39.5