summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_export/project_tree_restorer.rb
diff options
context:
space:
mode:
authorJames Lopez <james@gitlab.com>2017-04-04 16:34:19 +0000
committerRémy Coutable <remy@rymai.me>2017-04-04 16:34:19 +0000
commit22d7ae80020e3d581d7bded2c2f3d5606a5e48ee (patch)
treea57e4669b88241baf8389f1a3faa4b057a1b4293 /lib/gitlab/import_export/project_tree_restorer.rb
parent82836af4e7bda539d03ceee8238f863268b2a46e (diff)
downloadgitlab-ce-22d7ae80020e3d581d7bded2c2f3d5606a5e48ee.tar.gz
Fix issues importing forked projects
Diffstat (limited to 'lib/gitlab/import_export/project_tree_restorer.rb')
-rw-r--r--lib/gitlab/import_export/project_tree_restorer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/import_export/project_tree_restorer.rb b/lib/gitlab/import_export/project_tree_restorer.rb
index cda6ddf0443..df21ff22216 100644
--- a/lib/gitlab/import_export/project_tree_restorer.rb
+++ b/lib/gitlab/import_export/project_tree_restorer.rb
@@ -119,7 +119,7 @@ module Gitlab
relation_hash: parsed_relation_hash(relation_hash),
members_mapper: members_mapper,
user: @user,
- project_id: restored_project.id)
+ project: restored_project)
end.compact
relation_hash_list.is_a?(Array) ? relation_array : relation_array.first