1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-26 00:32:41 +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:
vrana 2012-12-10 15:10:31 -08:00
parent c68a048213
commit 48077c80f2

View file

@ -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();
}