Ejemplo n.º 1
0
 public function itDoesNotNeedToCustomizeSSHConfigOfCodendiadmOrRoot()
 {
     $id = 1;
     $host = 'le_host';
     $http_port = 'le_http_port';
     $ssh_port = 'le_ssh_port';
     $login = '******';
     $identity_file = 'le_identity_file';
     $replication_key = '';
     $use_ssl = false;
     $gerrit_version = '2.5';
     $http_password = '******';
     $server = new Git_RemoteServer_GerritServer($id, $host, $ssh_port, $http_port, $login, $identity_file, $replication_key, $use_ssl, $gerrit_version, $http_password);
     $expected = 'ext::ssh -p le_ssh_port -i le_identity_file le_login@le_host %S le_project';
     $this->assertEqual($expected, $server->getCloneSSHUrl("le_project"));
 }
Ejemplo n.º 2
0
 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);
 }