From 7eb86b2371b2b2c713afff3de67e464846392b04 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Wed, 4 Feb 2015 06:53:47 +1100 Subject: [PATCH] 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 --- src/workflow/ArcanistGitHookPreReceiveWorkflow.php | 4 ++++ 1 file changed, 4 insertions(+) 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()) {