branch) { return $this->branch; } if ($this->repository) { return $this->repository->getDefaultBranch(); } throw new Exception(pht('Unable to determine branch!')); } }