summaryrefslogtreecommitdiff
path: root/plugins/github/src/org/jetbrains/plugins/github/extensions/GithubCheckoutProvider.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/github/src/org/jetbrains/plugins/github/extensions/GithubCheckoutProvider.java')
-rw-r--r--plugins/github/src/org/jetbrains/plugins/github/extensions/GithubCheckoutProvider.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/github/src/org/jetbrains/plugins/github/extensions/GithubCheckoutProvider.java b/plugins/github/src/org/jetbrains/plugins/github/extensions/GithubCheckoutProvider.java
index 6b3f73f5f8be..911314c4f72d 100644
--- a/plugins/github/src/org/jetbrains/plugins/github/extensions/GithubCheckoutProvider.java
+++ b/plugins/github/src/org/jetbrains/plugins/github/extensions/GithubCheckoutProvider.java
@@ -29,6 +29,7 @@ import git4idea.commands.Git;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.plugins.github.api.GithubApiUtil;
+import org.jetbrains.plugins.github.api.GithubConnection;
import org.jetbrains.plugins.github.api.GithubRepo;
import org.jetbrains.plugins.github.exceptions.GithubOperationCanceledException;
import org.jetbrains.plugins.github.util.GithubAuthData;
@@ -62,11 +63,11 @@ public class GithubCheckoutProvider implements CheckoutProvider {
@Override
public List<GithubRepo> convert(ProgressIndicator indicator) throws IOException {
return GithubUtil.runTask(project, GithubAuthDataHolder.createFromSettings(), indicator,
- new ThrowableConvertor<GithubAuthData, List<GithubRepo>, IOException>() {
+ new ThrowableConvertor<GithubConnection, List<GithubRepo>, IOException>() {
@NotNull
@Override
- public List<GithubRepo> convert(@NotNull GithubAuthData auth) throws IOException {
- return GithubApiUtil.getAvailableRepos(auth);
+ public List<GithubRepo> convert(@NotNull GithubConnection connection) throws IOException {
+ return GithubApiUtil.getAvailableRepos(connection);
}
}
);