summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-04 09:32:29 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-04 09:32:29 +0300
commitf121806ad0d71ace008e43bd96835a8ee1f20418 (patch)
treec7fdf26ee998ebc0e4803c7b6a6cd85195eedbef /app
parentb460f1e4275ef00f176e6fe0f397c93f4a2c76c9 (diff)
downloadgitlab-ce-f121806ad0d71ace008e43bd96835a8ee1f20418.tar.gz
Fix broken compare with deleted file in dff
Diffstat (limited to 'app')
-rw-r--r--app/views/commits/_diffs.html.haml2
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