function()
{
if (!empty($this->project)) {
$this->repository_default = '';
$this->repositories = $this->getRepositories();
foreach ($this->repositories as $i => $rep) {
if (empty($this->repository_default)) {
$this->repository_default = $rep['name'];
}
$this->repositories[$i]['root_path'] = $this->getRootPath($rep['name']);
if (!empty($rep['default'])) {
$this->repository_default = $rep['name'];
}
}
}
}