summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2017-11-08 21:20:46 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2017-11-08 21:20:46 +0100
commit48cb1c509686fc40f65ad153f36ab5d22feb63ac (patch)
tree17c8bc19eaa9157f02eb90962e5458ffdc582e25 /lib/tasks
parent0c3877a48827b587b407174410196993bec79f73 (diff)
downloadgitlab-ce-48cb1c509686fc40f65ad153f36ab5d22feb63ac.tar.gz
Restore GH enterprise support in the Rake task
This restores GH enterprise support in the GH import Rake task.
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/import.rake6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tasks/import.rake b/lib/tasks/import.rake
index 943cbe6d80c..aafbe52e5f8 100644
--- a/lib/tasks/import.rake
+++ b/lib/tasks/import.rake
@@ -101,8 +101,8 @@ end
class GithubRepos
def initialize(token, current_user, github_repo)
- @client = Octokit::Client
- .new(access_token: token, auto_paginate: true, per_page: 100)
+ @client = Gitlab::GithubImport::Client.new(token)
+ @client.octokit.auto_paginate = true
@current_user = current_user
@github_repo = github_repo
@@ -130,7 +130,7 @@ class GithubRepos
end
def repos
- @client.list_repositories
+ @client.octokit.list_repositories
end
end