1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-12-22 21:40:54 +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 getSupportedRevisionControlSystems() {
return array('git');
}
public function run() {
$repository_api = $this->getRepositoryAPI();
if (!($repository_api instanceof ArcanistGitAPI)) {
throw new ArcanistUsageException(
'arc branch is only supported under Git.');
}
return parent::run();
}