]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Don't use cache in svn-hook-pre-commit
authorNick Harper <nharper@fb.com>
Wed, 24 Apr 2013 22:10:27 +0000 (15:10 -0700)
committerNick Harper <nharper@fb.com>
Wed, 24 Apr 2013 22:10:27 +0000 (15:10 -0700)
Test Plan: arc lint

Reviewers: epriestley, wez

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D5779

src/lint/engine/ArcanistLintEngine.php

index 6076d3e650daddf903577b95d5972b527fb2719d..b08f5e19a752138e2bedaa315cfcb7c747156043 100644 (file)
@@ -339,6 +339,9 @@ abstract class ArcanistLintEngine {
   }
 
   private function shouldUseCache($cache_granularity, $repository_version) {
+    if ($this->commitHookMode) {
+      return false;
+    }
     switch ($cache_granularity) {
       case ArcanistLinter::GRANULARITY_FILE:
         return true;