コード例 #1
0
 @Override
 @NotNull
 public GitCommandResult clone(
     @NotNull Project project,
     @NotNull File parentDirectory,
     @NotNull String url,
     @NotNull String clonedDirectoryName) {
   GitLineHandlerPasswordRequestAware handler =
       new GitLineHandlerPasswordRequestAware(project, parentDirectory, GitCommand.CLONE);
   handler.addParameters(url);
   handler.addParameters(clonedDirectoryName);
   return run(handler, true);
 }
コード例 #2
0
 @Override
 @NotNull
 public GitCommandResult push(
     @NotNull GitRepository repository,
     @NotNull String remote,
     @NotNull String spec,
     @NotNull GitLineHandlerListener... listeners) {
   final GitLineHandlerPasswordRequestAware h =
       new GitLineHandlerPasswordRequestAware(
           repository.getProject(), repository.getRoot(), GitCommand.PUSH);
   h.setSilent(false);
   addListeners(h, listeners);
   h.addParameters(remote);
   h.addParameters(spec);
   return run(h, true);
 }