mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-23 14:00:55 +01:00
Use repository info from arcanist.projectinfo if available
Test Plan: Added a debug output there and ran. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4147
This commit is contained in:
parent
c68a048213
commit
48077c80f2
1 changed files with 7 additions and 1 deletions
|
@ -1427,7 +1427,13 @@ abstract class ArcanistBaseWorkflow {
|
|||
}
|
||||
|
||||
protected function loadProjectRepository() {
|
||||
$repository_phid = idx($this->getProjectInfo(), 'repositoryPHID');
|
||||
$project = $this->getProjectInfo();
|
||||
if (isset($project['repository'])) {
|
||||
return $project['repository'];
|
||||
}
|
||||
// NOTE: The rest of the code is here for backwards compatibility.
|
||||
|
||||
$repository_phid = idx($project, 'repositoryPHID');
|
||||
if (!$repository_phid) {
|
||||
return array();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue