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>2017-09-05 12:02:34 +0300
committerJames Lopez <james@jameslopez.es>2017-09-05 18:47:45 +0300
commitbe99f82478e023e41a543a0b9348e27d56fb3c13 (patch)
treea19d49efcf7025726eb68e9c71be0a18c79d87aa /lib/gitlab/import_export
parent8ff9fc55cf876a61fcfde421b71d204d9fd33723 (diff)
started refactoring reader
Diffstat (limited to 'lib/gitlab/import_export')
-rw-r--r--lib/gitlab/import_export/reader.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/import_export/reader.rb b/lib/gitlab/import_export/reader.rb
index eb7f5120592..4f061959047 100644
--- a/lib/gitlab/import_export/reader.rb
+++ b/lib/gitlab/import_export/reader.rb
@@ -18,7 +18,9 @@ module Gitlab
attributes = @attributes_finder.find(:project)
project_attributes = attributes.is_a?(Hash) ? attributes[:project] : {}
- project_attributes.merge(include: build_hash(@tree))
+ build_hash(@tree).each do |sub_hash|
+ yield(project_attributes.merge(include: sub_hash))
+ end
rescue => e
@shared.error(e)
false