Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-05-27 00:36:01 +0300
committerRobert Speicher <robert@gitlab.com>2016-05-27 00:36:01 +0300
commit1d2d67b9e35fe029250f6a11c2163637d0b186e1 (patch)
tree969d848b30391d6c50bca8fd400c5ea8b36b39b6 /lib
parent9576f77caefa5ee392b8246f433292cacd81ce5b (diff)
parent5bf191c60ee1cbf730252dc1a4cab3446a6a3dde (diff)
Merge branch 'fix/gitlab-importer-issue' into 'master'
Fix gitlab importer issue Fixed credentials not being called correctly - probably some bad refactoring or search & replace... Fixes https://gitlab.com/gitlab-org/gitlab-ee/issues/565 See merge request !4301
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/gitlab_import/importer.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/gitlab_import/importer.rb b/lib/gitlab/gitlab_import/importer.rb
index 3e51c06877e..e32ef8a44c2 100644
--- a/lib/gitlab/gitlab_import/importer.rb
+++ b/lib/gitlab/gitlab_import/importer.rb
@@ -5,9 +5,9 @@ module Gitlab
def initialize(project)
@project = project
- credentials = project.import_data
- if credentials && credentials[:password]
- @client = Client.new(credentials[:password])
+ import_data = project.import_data
+ if import_data && import_data.credentials && import_data.credentials[:password]
+ @client = Client.new(import_data.credentials[:password])
@formatter = Gitlab::ImportFormatter.new
else
raise Projects::ImportService::Error, "Unable to find project import data credentials for project ID: #{@project.id}"