summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-09-06 10:09:24 +0200
committerJames Lopez <james@jameslopez.es>2017-09-06 10:09:24 +0200
commit89ca01eb1a2eac5472f3957bb425700dcac82a7a (patch)
treec3ba78f6b46d0696527107681f00d4de4b9a9524 /lib
parent7e38cc9cc215682fc20a7c036dee763df4409198 (diff)
downloadgitlab-ce-89ca01eb1a2eac5472f3957bb425700dcac82a7a.tar.gz
fix spec failures
Diffstat (limited to 'lib')
-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 f8775729bef..4c17f13b851 100644
--- a/lib/gitlab/import_export/project_tree_restorer.rb
+++ b/lib/gitlab/import_export/project_tree_restorer.rb
@@ -72,7 +72,7 @@ module Gitlab
@saved = false unless restored_project.append_or_update_attribute(relation_key, relation_hash)
# Restore the project again, extra query that skips holding the AR objects in memory
- @restored_project.reload
+ @restored_project = Project.find(@project_id)
end
def default_relation_list