]> sipb.mit.edu Git - ikiwiki.git/blobdiff - ikiwiki.in
Merge branch 'master' into git-anon
[ikiwiki.git] / ikiwiki.in
index 873bde0df49d68d0fe51e18b6ee11bc2ea4f0378..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();
        }