summaryrefslogtreecommitdiff
path: root/app/serializers/tree_entity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/tree_entity.rb')
-rw-r--r--app/serializers/tree_entity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/tree_entity.rb b/app/serializers/tree_entity.rb
index 555e5cf83bd..a16a91c2db9 100644
--- a/app/serializers/tree_entity.rb
+++ b/app/serializers/tree_entity.rb
@@ -4,7 +4,7 @@ class TreeEntity < Grape::Entity
expose :id, :path, :name, :mode
expose :last_commit do |tree|
- request.project.repository.last_commit_for_path(tree.commit_id, tree.path)
+ request.project.repository.last_commit_for_path_lazy(tree.commit_id, tree.path)
end
expose :icon do |tree|