diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-09-07 14:28:25 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-09-07 14:28:25 +0000 |
commit | 1f765ce9ea25b45cd702c25ccb762eacceb9a4ae (patch) | |
tree | 1dc0b5b6141b386d4e6fedce1ffd519e21a60e21 /lib/api | |
parent | 766bb7fb8ed94b438aac47c0197c96cfff6c789f (diff) | |
parent | 1499d1764dbea4234002ee17fe46c0d6d6772067 (diff) | |
download | gitlab-ce-1f765ce9ea25b45cd702c25ccb762eacceb9a4ae.tar.gz |
Merge branch '48778-remove-old-storage-logic-from-import-export' into 'master'
Resolve "Remove old storage logic from Import/Export"
Closes #51144, #50109, #48778, and #51079
See merge request gitlab-org/gitlab-ce!21409
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/project_export.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/api/project_export.rb b/lib/api/project_export.rb index 15c57a2fc02..8562ae6d737 100644 --- a/lib/api/project_export.rb +++ b/lib/api/project_export.rb @@ -21,12 +21,8 @@ module API detail 'This feature was introduced in GitLab 10.6.' end get ':id/export/download' do - path = user_project.export_project_path - - if path - present_disk_file!(path, File.basename(path), 'application/gzip') - elsif user_project.export_project_object_exists? - present_carrierwave_file!(user_project.import_export_upload.export_file) + if user_project.export_file_exists? + present_carrierwave_file!(user_project.export_file) else render_api_error!('404 Not found or has expired', 404) end |