Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-07-13 16:44:02 +0300
committerJames Lopez <james@jameslopez.es>2018-07-13 16:44:02 +0300
commit16756c20def5cdbe083ea9a64a100bbdf255f157 (patch)
treec26e239805a221c85ad33c8eb3a740c30808ea6f
parentdae0d809ea66ac76bac63f17b6c4f9c8ce360a06 (diff)
add small comment to download method in uploads manager
-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