Skip to content
Snippets Groups Projects
Commit c3b6eadc authored by James Lopez's avatar James Lopez
Browse files

fix params

parent 46b89a27
No related branches found
No related tags found
1 merge request!4894Fix temp file being deleted after the request while importing a GitLab project
Pipeline #
Loading
@@ -12,9 +12,9 @@ class Import::GitlabProjectsController < Import::BaseController
Loading
@@ -12,9 +12,9 @@ class Import::GitlabProjectsController < Import::BaseController
return redirect_back_or_default(options: { alert: "You need to upload a GitLab project export archive." }) return redirect_back_or_default(options: { alert: "You need to upload a GitLab project export archive." })
end end
   
imported_file = params[:file].path + "-import" imported_file = project_params[:file].path + "-import"
   
FileUtils.copy_entry(params[:file].path, imported_file) FileUtils.copy_entry(project_params[:file].path, imported_file)
   
@project = Gitlab::ImportExport::ProjectCreator.new(project_params[:namespace_id], @project = Gitlab::ImportExport::ProjectCreator.new(project_params[:namespace_id],
current_user, current_user,
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment