diff options
Diffstat (limited to 'plugins/git4idea/src/git4idea/checkout/GitCloneDialog.java')
-rw-r--r-- | plugins/git4idea/src/git4idea/checkout/GitCloneDialog.java | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/plugins/git4idea/src/git4idea/checkout/GitCloneDialog.java b/plugins/git4idea/src/git4idea/checkout/GitCloneDialog.java index 831f833e0db5..40865a0b3f13 100644 --- a/plugins/git4idea/src/git4idea/checkout/GitCloneDialog.java +++ b/plugins/git4idea/src/git4idea/checkout/GitCloneDialog.java @@ -21,37 +21,25 @@ import com.intellij.dvcs.ui.DvcsBundle; import com.intellij.openapi.project.Project; import git4idea.GitUtil; import git4idea.GitVcs; -import git4idea.commands.GitCommand; -import git4idea.commands.GitLineHandlerPasswordRequestAware; -import git4idea.commands.GitTask; -import git4idea.commands.GitTaskResult; +import git4idea.commands.*; import git4idea.remote.GitRememberedInputs; import org.jetbrains.annotations.NotNull; import java.io.File; -/** - * @author Nadya Zabrodina - */ public class GitCloneDialog extends CloneDvcsDialog { public GitCloneDialog(@NotNull Project project) { super(project, GitVcs.NAME, GitUtil.DOT_GIT); } - /* - * We have a hack here: if http response asked for a password, then the url is at least valid and existent, and we consider - * that the test passed. - */ protected boolean test(@NotNull String url) { - final GitLineHandlerPasswordRequestAware handler = - new GitLineHandlerPasswordRequestAware(myProject, new File("."), GitCommand.LS_REMOTE); + final GitLineHandler handler = new GitLineHandler(myProject, new File("."), GitCommand.LS_REMOTE); handler.setUrl(url); handler.addParameters(url, "master"); GitTask task = new GitTask(myProject, handler, DvcsBundle.message("clone.testing", url)); GitTaskResult result = task.executeModal(); - boolean authFailed = handler.hadAuthRequest(); - return result.isOK() || authFailed; + return result.isOK(); } @NotNull |