diff options
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 9a6d4be2fc8..affc298e0ca 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -266,8 +266,6 @@ class ProjectsController < Projects::ApplicationController end def export_project_path - # TODO: move this, probably to ImportExport and refactor - folder = File.join(Settings.shared['path'], 'tmp/project_exports', @project.path_with_namespace) - Dir.glob("#{folder}/*export.tar.gz").max_by {|f| File.ctime(f)} + Dir.glob("#{@project.export_path}/*export.tar.gz").max_by {|f| File.ctime(f)} end end |