aboutsummaryrefslogtreecommitdiff
path: root/ikiwiki.in
diff options
context:
space:
mode:
Diffstat (limited to 'ikiwiki.in')
-rwxr-xr-xikiwiki.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/ikiwiki.in b/ikiwiki.in
index 22addb463..60663bc89 100755
--- a/ikiwiki.in
+++ b/ikiwiki.in
@@ -119,10 +119,15 @@ sub getconfig () { #{{{
}
delete $ENV{WRAPPED_OPTIONS};
- # optimisation for no-op post_commit
if ($config{post_commit} && ! commit_hook_enabled()) {
+ # optimisation for no-op post_commit
exit 0;
}
+ elsif ($config{test_receive}) {
+ # quick success if the user is trusted
+ require IkiWiki::Receive;
+ exit 0 if IkiWiki::Receive::trusted();
+ }
loadplugins();
checkconfig();
@@ -190,7 +195,8 @@ sub main () { #{{{
# do nothing
}
elsif ($config{test_receive}) {
- rcs_test_receive();
+ require IkiWiki::Receive;
+ IkiWiki::Receive::test();
}
else {
if ($config{rebuild}) {