diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-04 09:32:29 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-04 09:32:29 +0300 |
commit | f121806ad0d71ace008e43bd96835a8ee1f20418 (patch) | |
tree | c7fdf26ee998ebc0e4803c7b6a6cd85195eedbef /app | |
parent | b460f1e4275ef00f176e6fe0f397c93f4a2c76c9 (diff) | |
download | gitlab-ce-f121806ad0d71ace008e43bd96835a8ee1f20418.tar.gz |
Fix broken compare with deleted file in dff
Diffstat (limited to 'app')
-rw-r--r-- | app/views/commits/_diffs.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/commits/_diffs.html.haml b/app/views/commits/_diffs.html.haml index a97d6711a43..3f4d51f753a 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 |