]> sipb.mit.edu Git - ikiwiki.git/blobdiff - ikiwiki.in
Merge branch 'master' into git-anon
[ikiwiki.git] / ikiwiki.in
index 4f24cfc2eb8ae4c53d7c0f471fbf12aea13c0578..22addb46337724eecb2e50b2642c76f73d92e8bb 100755 (executable)
@@ -118,6 +118,12 @@ sub getconfig () { #{{{
                        error("WRAPPED_OPTIONS: $@");
                }
                delete $ENV{WRAPPED_OPTIONS};
+
+               # optimisation for no-op post_commit 
+               if ($config{post_commit} && ! commit_hook_enabled()) {
+                       exit 0;
+               }
+
                loadplugins();
                checkconfig();
        }
@@ -183,6 +189,9 @@ sub main () { #{{{
        elsif ($config{post_commit} && ! commit_hook_enabled()) {
                # do nothing
        }
+       elsif ($config{test_receive}) {
+               rcs_test_receive();
+       }
        else {
                if ($config{rebuild}) {
                        debug(gettext("rebuilding wiki.."));