diff options
author | James Lopez <james@jameslopez.es> | 2016-06-24 11:41:33 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-06-24 11:41:33 +0200 |
commit | c3b6eadc33272d08069244f196ffba21709114d5 (patch) | |
tree | 2996932d64be8bf2c5f14fd50b5a02ebd57a7279 /app | |
parent | 46b89a270f7eef15f6d8e41c79600795265054fb (diff) | |
download | gitlab-ce-c3b6eadc33272d08069244f196ffba21709114d5.tar.gz |
fix params
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/import/gitlab_projects_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/import/gitlab_projects_controller.rb b/app/controllers/import/gitlab_projects_controller.rb index b521daa03aa..513348c39af 100644 --- a/app/controllers/import/gitlab_projects_controller.rb +++ b/app/controllers/import/gitlab_projects_controller.rb @@ -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." }) 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], current_user, |