/**
  * Get a project repository by its id
  *
  * @param int $id         The id of the repository to load
  *
  * @return GitRepository the repository or null if not found
  */
 public function getRepositoryByPath($project_id, $path)
 {
     $dar = $this->dao->searchProjectRepositoryByPath($project_id, $path);
     return $this->getRepositoryFromDar($dar);
 }