diff options
author | James Lopez <james@jameslopez.es> | 2018-07-13 16:44:02 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-07-13 16:44:02 +0300 |
commit | 16756c20def5cdbe083ea9a64a100bbdf255f157 (patch) | |
tree | c26e239805a221c85ad33c8eb3a740c30808ea6f /lib/gitlab/import_export | |
parent | dae0d809ea66ac76bac63f17b6c4f9c8ce360a06 (diff) |
add small comment to download method in uploads manager
Diffstat (limited to 'lib/gitlab/import_export')
-rw-r--r-- | lib/gitlab/import_export/uploads_manager.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/import_export/uploads_manager.rb b/lib/gitlab/import_export/uploads_manager.rb index 4af547e616e..6499aa41e84 100644 --- a/lib/gitlab/import_export/uploads_manager.rb +++ b/lib/gitlab/import_export/uploads_manager.rb @@ -97,6 +97,7 @@ module Gitlab mkdir_p(File.join(uploads_export_path, secret)) File.open(upload_path, 'w') do |file| + # Download (stream) file from the uploader's location IO.copy_stream(URI.parse(upload.file.url).open, file) end end |