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:
parent
0fd04109e9
commit
77eb24b13a
1 changed files with 4 additions and 5 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue