OSDN Git Service

Fix broken compare with deleted file in dff
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Thu, 4 Apr 2013 06:32:29 +0000 (09:32 +0300)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Thu, 4 Apr 2013 06:32:29 +0000 (09:32 +0300)
app/views/commits/_diffs.html.haml

index a97d671..3f4d51f 100644 (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