summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_export
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-07-13 15:44:02 +0200
committerJames Lopez <james@jameslopez.es>2018-07-13 15:44:02 +0200
commit16756c20def5cdbe083ea9a64a100bbdf255f157 (patch)
treec26e239805a221c85ad33c8eb3a740c30808ea6f /lib/gitlab/import_export
parentdae0d809ea66ac76bac63f17b6c4f9c8ce360a06 (diff)
downloadgitlab-ce-16756c20def5cdbe083ea9a64a100bbdf255f157.tar.gz
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.rb1
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