From f121806ad0d71ace008e43bd96835a8ee1f20418 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 4 Apr 2013 09:32:29 +0300 Subject: [PATCH] Fix broken compare with deleted file in dff --- app/views/commits/_diffs.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/commits/_diffs.html.haml b/app/views/commits/_diffs.html.haml index a97d671..3f4d51f 100644 --- a/app/views/commits/_diffs.html.haml +++ b/app/views/commits/_diffs.html.haml @@ -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 -- libgit2 0.21.2