summaryrefslogtreecommitdiff
path: root/app/views/commits/_diffs.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/commits/_diffs.html.haml')
-rw-r--r--app/views/commits/_diffs.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/commits/_diffs.html.haml b/app/views/commits/_diffs.html.haml
index b2da4796db6..9d57edb1d97 100644
--- a/app/views/commits/_diffs.html.haml
+++ b/app/views/commits/_diffs.html.haml
@@ -16,7 +16,7 @@
- unless @suppress_diff
- diffs.each_with_index do |diff, i|
- next if diff.diff.empty?
- - file = (@commit.tree / diff.new_path)
+ - file = Tree.new(@repository, @commit.id, @ref, diff.new_path)
- file = (@commit.prev_commit.tree / diff.old_path) unless file
- next unless file
.file{id: "diff-#{i}"}