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,7 +18,7 @@ | ||
18 | - next if diff.diff.empty? | 18 | - next if diff.diff.empty? |
19 | - file = Gitlab::Git::Blob.new(@repository, @commit.id, @ref, diff.new_path) | 19 | - file = Gitlab::Git::Blob.new(@repository, @commit.id, @ref, diff.new_path) |
20 | - file = Gitlab::Git::Blob.new(@repository, @commit.parent_id, @ref, diff.old_path) unless file.exists? | 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 | .file{id: "diff-#{i}"} | 22 | .file{id: "diff-#{i}"} |
23 | .header | 23 | .header |
24 | - if diff.deleted_file | 24 | - if diff.deleted_file |