Exemplo n.º 1
0
 @Override
 public void remoteUpdate(RemoteUpdateRequest request) throws GitException {
   nativeGit
       .createRemoteUpdateCommand()
       .setRemoteName(request.getName())
       .setAddUrl(request.getAddUrl())
       .setBranchesToAdd(request.getBranches())
       .setAddBranches(request.isAddBranches())
       .setAddPushUrl(request.getAddPushUrl())
       .setRemovePushUrl(request.getRemovePushUrl())
       .setRemoveUrl(request.getRemoveUrl())
       .execute();
 }
Exemplo n.º 2
0
 @Override
 public void remoteUpdate(RemoteUpdateRequest request) throws GitException {
   ensureExistenceRepoRootInWorkingDirectory();
   nativeGit
       .createRemoteUpdateCommand()
       .setRemoteName(request.getName())
       .setAddUrl(request.getAddUrl())
       .setBranchesToAdd(request.getBranches())
       .setAddBranches(request.isAddBranches())
       .setAddPushUrl(request.getAddPushUrl())
       .setRemovePushUrl(request.getRemovePushUrl())
       .setRemoveUrl(request.getRemoveUrl())
       .execute();
 }