From 48077c80f2739913ed1321f7c65d4232bcc74d2a Mon Sep 17 00:00:00 2001 From: vrana Date: Mon, 10 Dec 2012 15:10:31 -0800 Subject: [PATCH] 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 --- src/workflow/ArcanistBaseWorkflow.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/workflow/ArcanistBaseWorkflow.php b/src/workflow/ArcanistBaseWorkflow.php index 71f16a27..efe9ef2b 100644 --- a/src/workflow/ArcanistBaseWorkflow.php +++ b/src/workflow/ArcanistBaseWorkflow.php @@ -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(); }