summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-06-14 22:11:21 +0200
committerJames Lopez <james@jameslopez.es>2016-06-14 22:11:21 +0200
commit36ccaca35a7be19498d779a5b781cc4e3f0dede8 (patch)
treee503c991277f048f22fc5899434484e7ff07818a /app/controllers/projects_controller.rb
parentdee6fba5c9df60be370b881f074fac13d16b83ed (diff)
downloadgitlab-ce-36ccaca35a7be19498d779a5b781cc4e3f0dede8.tar.gz
project export archiver
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb4
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