From: Joshua Spence Date: Tue, 3 Feb 2015 19:53:47 +0000 (+1100) Subject: Mark `git-hook-pre-receive` as git only X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=7eb86b2371b2b2c713afff3de67e464846392b04;p=arcanist.git Mark `git-hook-pre-receive` as git only 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 --- diff --git a/src/workflow/ArcanistGitHookPreReceiveWorkflow.php b/src/workflow/ArcanistGitHookPreReceiveWorkflow.php index 6e85ca16..edfc7923 100644 --- a/src/workflow/ArcanistGitHookPreReceiveWorkflow.php +++ b/src/workflow/ArcanistGitHookPreReceiveWorkflow.php @@ -41,6 +41,10 @@ EOTEXT return false; } + public function getSupportedRevisionControlSystems() { + return array('git'); + } + public function run() { $working_copy = $this->getWorkingCopy(); if (!$working_copy->getProjectID()) {