Commit f121806a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix broken compare with deleted file in dff

parent b460f1e4
......@@ -18,7 +18,7 @@
- next if diff.diff.empty?
- file = Gitlab::Git::Blob.new(@repository, @commit.id, @ref, diff.new_path)
- file = Gitlab::Git::Blob.new(@repository, @commit.parent_id, @ref, diff.old_path) unless file.exists?
- next unless file
- next unless file.exists?
.file{id: "diff-#{i}"}
.header
- if diff.deleted_file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment