diff options
author | Rubén Dávila <ruben@gitlab.com> | 2018-03-12 16:01:43 -0500 |
---|---|---|
committer | Rubén Dávila <ruben@gitlab.com> | 2018-03-12 16:01:43 -0500 |
commit | afe2c15e6bf1005e5bd1d213d3548a1a17a11137 (patch) | |
tree | a31f89b2ab3dbec92ef11fb2cf106d190ba68668 /lib/gitlab/gitlab_import | |
parent | afd2d381119c3778140c3dd63c7ef24ecdb4c62e (diff) | |
download | gitlab-ce-afe2c15e6bf1005e5bd1d213d3548a1a17a11137.tar.gz |
Fix provider server URL used when listing repos to importrd-fix-github-url-when-listing-repositories-at-importing
Also use Gitlab::Auth::OAuth::Provider.config_for to access OmniAuth config
Diffstat (limited to 'lib/gitlab/gitlab_import')
-rw-r--r-- | lib/gitlab/gitlab_import/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/gitlab_import/client.rb b/lib/gitlab/gitlab_import/client.rb index 075b3982608..5482504e72e 100644 --- a/lib/gitlab/gitlab_import/client.rb +++ b/lib/gitlab/gitlab_import/client.rb @@ -72,7 +72,7 @@ module Gitlab end def config - Gitlab.config.omniauth.providers.find {|provider| provider.name == "gitlab"} + Gitlab::Auth::OAuth::Provider.config_for('gitlab') end def gitlab_options |