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

fix github import issues

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