Commit 6aeb753b authored by James Lopez's avatar James Lopez

fix github import issues

parent 6d12d79d
......@@ -418,7 +418,7 @@ class Project < ActiveRecord::Base
def create_or_update_import_data(credentials)
project_import_data = import_data || build_import_data
project_import_data.credentials ||= {}
project_import_data.credentials.merge!(credentials)
project_import_data.credentials = project_import_data.credentials.merge(credentials)
project_import_data.save
end
......
......@@ -8,7 +8,7 @@ module Gitlab
def initialize(project)
@project = project
if import_data_credentials
@client = Client.new(import_data_credentials['user'])
@client = Client.new(import_data_credentials[:user])
@formatter = Gitlab::ImportFormatter.new
else
raise Projects::ImportService::Error, "Unable to find project import data credentials for project ID: #{@project.id}"
......
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