summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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