Commit 823e5457 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'import-options-dup' into 'master'

Fix import pages not working after first load.

Fixes #2102.

`OAuth2::Client` was deleting keys from the options hash in place, which made it incomplete the next time the import page was loaded. We dup it so this no longer happens.

See merge request !1691
parents 2b0f9f93 27189554
......@@ -62,6 +62,7 @@ v 7.9.0 (unreleased)
- Allow smb:// links in Markdown text.
- Filter merge request by title or description at Merge Requests page
- Block user if he/she was blocked in Active Directory
- Fix import pages not working after first load.
v 7.8.4
- Fix issue_tracker_id substitution in custom issue trackers
......
......@@ -92,7 +92,7 @@ module Gitlab
end
def bitbucket_options
OmniAuth::Strategies::Bitbucket.default_options[:client_options]
OmniAuth::Strategies::Bitbucket.default_options[:client_options].dup
end
end
end
......
......@@ -46,7 +46,7 @@ module Gitlab
end
def github_options
OmniAuth::Strategies::GitHub.default_options[:client_options]
OmniAuth::Strategies::GitHub.default_options[:client_options].dup
end
end
end
......
......@@ -71,7 +71,7 @@ module Gitlab
end
def gitlab_options
OmniAuth::Strategies::GitLab.default_options[:client_options]
OmniAuth::Strategies::GitLab.default_options[:client_options].dup
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment