diff options
Diffstat (limited to 'lib/gitlab/gitlab_import/client.rb')
-rw-r--r-- | lib/gitlab/gitlab_import/client.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/gitlab_import/client.rb b/lib/gitlab/gitlab_import/client.rb index 86fb6c51765..5482504e72e 100644 --- a/lib/gitlab/gitlab_import/client.rb +++ b/lib/gitlab/gitlab_import/client.rb @@ -65,13 +65,14 @@ module Gitlab y << item end break if items.empty? || items.size < per_page + page += 1 end end end def config - Gitlab.config.omniauth.providers.find{|provider| provider.name == "gitlab"} + Gitlab::Auth::OAuth::Provider.config_for('gitlab') end def gitlab_options |