]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Don't reject commits which fail to trigger any linters.
authorepriestley <epriestley@phabricator.com>
Thu, 17 Feb 2011 20:45:15 +0000 (12:45 -0800)
committerepriestley <epriestley@phabricator.com>
Thu, 17 Feb 2011 20:45:15 +0000 (12:45 -0800)
Summary:

Test Plan:

Reviewers:

CC:

src/workflow/svn-hook-pre-commit/ArcanistSvnHookPreCommitWorkflow.php

index 938b7cea43bd54bf8d9f3d33296697f3d851ea50..23f85133e52f7ef6efe4e6c66bdfbc9a9215a2ec 100644 (file)
@@ -199,7 +199,12 @@ EOTEXT
     $engine->setFileData($data);
     $engine->setCommitHookMode(true);
 
-    $results = $engine->run();
+    try {
+      $results = $engine->run();
+    } catch (ArcanistNoEffectException $no_effect) {
+      // Nothing to do, bail out.
+      return 0;
+    }
 
     $renderer = new ArcanistLintRenderer();
     $failures = array();