Test Plan: Added a debug output there and ran.
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4147
}
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();
}