summaryrefslogtreecommitdiff
path: root/app/models/tree.rb
diff options
context:
space:
mode:
authorIgor Drozdov <idrozdov@gitlab.com>2019-06-17 13:00:30 +0300
committerIgor Drozdov <idrozdov@gitlab.com>2019-06-17 13:10:05 +0300
commit1c1954e70e91092f5bbd4042dd5e1793cfab22ff (patch)
treea01d4fa72f3916c1835de05f3069a5b4258cd510 /app/models/tree.rb
parent814e1af72e654aa5f8ea9e200c26ce8ea99954df (diff)
downloadgitlab-ce-id-graphql-tree-commit.tar.gz
Remove N+1 from LastCommitResolverid-graphql-tree-commit
Diffstat (limited to 'app/models/tree.rb')
-rw-r--r--app/models/tree.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/tree.rb b/app/models/tree.rb
index e30c2c8742c..cd385872171 100644
--- a/app/models/tree.rb
+++ b/app/models/tree.rb
@@ -14,8 +14,7 @@ class Tree
@path = path
git_repo = @repository.raw_repository
- raw_entries = Gitlab::Git::Tree.where(git_repo, @sha, @path, recursive)
- @entries = TreeEntry.decorate(raw_entries, repository)
+ @entries = Gitlab::Git::Tree.where(git_repo, @sha, @path, recursive)
end
def readme_path