Fix broken compare with deleted file in dff

This commit is contained in:
Dmitriy Zaporozhets 2013-04-04 09:32:29 +03:00
parent b460f1e427
commit f121806ad0
1 changed files with 1 additions and 1 deletions

View File

@ -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