diff options
author | James Lopez <james@jameslopez.es> | 2016-03-04 16:23:19 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-03-04 16:23:19 +0100 |
commit | c2b33d3b71215858892debeb45d93a69d530fd8e (patch) | |
tree | 210b42fbd215f8253ca6ee41c4349d785be665d9 /lib/gitlab/github_import/importer.rb | |
parent | 06b36c00d55df38cd2aaa4d5251185485c8abe5c (diff) | |
download | gitlab-ce-c2b33d3b71215858892debeb45d93a69d530fd8e.tar.gz |
added import url exposer to construct URL withunencrypted credentials
Diffstat (limited to 'lib/gitlab/github_import/importer.rb')
-rw-r--r-- | lib/gitlab/github_import/importer.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/github_import/importer.rb b/lib/gitlab/github_import/importer.rb index e2a85f29825..515fd4720d5 100644 --- a/lib/gitlab/github_import/importer.rb +++ b/lib/gitlab/github_import/importer.rb @@ -7,8 +7,7 @@ module Gitlab def initialize(project) @project = project - import_data = project.import_data.try(:data) - github_session = import_data["github_session"] if import_data + github_session = project.import_data.credentials if import_data @client = Client.new(github_session["github_access_token"]) @formatter = Gitlab::ImportFormatter.new end |