]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Mark `git-hook-pre-receive` as git only
authorJoshua Spence <josh@joshuaspence.com>
Tue, 3 Feb 2015 19:53:47 +0000 (06:53 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Tue, 3 Feb 2015 19:53:47 +0000 (06:53 +1100)
Summary: It doesn't make any sense to run this command on another VCS.

Test Plan: N/A

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11624

src/workflow/ArcanistGitHookPreReceiveWorkflow.php

index 6e85ca161db05829619b097e77dc3aebc96ba7b3..edfc7923c4af82213acd3c6ec47e3c73fe3bc553 100644 (file)
@@ -41,6 +41,10 @@ EOTEXT
     return false;
   }
 
+  public function getSupportedRevisionControlSystems() {
+    return array('git');
+  }
+
   public function run() {
     $working_copy = $this->getWorkingCopy();
     if (!$working_copy->getProjectID()) {