Esempio 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();
 }
 @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();
 }