mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +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:
parent
0fd04109e9
commit
77eb24b13a
1 changed files with 4 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue