1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 16:22:42 +01:00

Only allow arc branch to be used under git

Summary: Explicitly declare that the `arc branch` command is only supported under `git`.

Test Plan: N/A

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11552
This commit is contained in:
Joshua Spence 2015-02-04 06:58:53 +11:00
parent 0fd04109e9
commit 77eb24b13a

View file

@ -25,12 +25,11 @@ EOTEXT
); );
} }
public function run() { public function getSupportedRevisionControlSystems() {
$repository_api = $this->getRepositoryAPI(); return array('git');
if (!($repository_api instanceof ArcanistGitAPI)) {
throw new ArcanistUsageException(
'arc branch is only supported under Git.');
} }
public function run() {
return parent::run(); return parent::run();
} }