yay finally importing working with the new services structure

This commit is contained in:
James Lopez
2016-06-14 21:41:40 +02:00
parent ff44198e17
commit fc5f6943f8
3 changed files with 3 additions and 3 deletions
@@ -33,7 +33,7 @@ class Import::GitlabProjectsController < Import::BaseController
private
def file_is_valid?
project_params[:file].respond_to?(:read) && project_params[:file].content_type == 'application/x-gzip'
project_params[:file].respond_to?(:read)
end
def verify_project_and_namespace_access
+2 -2
View File
@@ -17,13 +17,13 @@ module Gitlab
error_out(error.message, caller[0].dup)
@errors << error.message
# Debug:
logger.error(error.backtrace)
Rails.logger.error(error.backtrace)
end
private
def error_out(message, caller)
logger.error("Import/Export error raised on #{caller}: #{message}")
Rails.logger.error("Import/Export error raised on #{caller}: #{message}")
end
end
end