From 28df67963bcb9fa16dd9e86152767182cc65291e Mon Sep 17 00:00:00 2001 From: Nick Harper Date: Wed, 24 Apr 2013 15:10:27 -0700 Subject: [PATCH] Don't use cache in svn-hook-pre-commit 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lint/engine/ArcanistLintEngine.php b/src/lint/engine/ArcanistLintEngine.php index 6076d3e6..b08f5e19 100644 --- a/src/lint/engine/ArcanistLintEngine.php +++ b/src/lint/engine/ArcanistLintEngine.php @@ -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;