Commit f121806ad0d71ace008e43bd96835a8ee1f20418
1 parent
b460f1e4
Exists in
master
and in
4 other branches
Fix broken compare with deleted file in dff
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/commits/_diffs.html.haml
... | ... | @@ -18,7 +18,7 @@ |
18 | 18 | - next if diff.diff.empty? |
19 | 19 | - file = Gitlab::Git::Blob.new(@repository, @commit.id, @ref, diff.new_path) |
20 | 20 | - file = Gitlab::Git::Blob.new(@repository, @commit.parent_id, @ref, diff.old_path) unless file.exists? |
21 | - - next unless file | |
21 | + - next unless file.exists? | |
22 | 22 | .file{id: "diff-#{i}"} |
23 | 23 | .header |
24 | 24 | - if diff.deleted_file | ... | ... |