protected function exportGitBranches(Git_RemoteServer_GerritServer $gerrit_server, $gerrit_project, GitRepository $repository) { $gerrit_project_url = $gerrit_server->getCloneSSHUrl($gerrit_project); $executor = new Git_Exec($repository->getFullPath(), $repository->getFullPath()); $executor->exportBranchesAndTags($gerrit_project_url); }