summaryrefslogtreecommitdiff
path: root/app/views/commits
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-02 21:30:36 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-02 21:30:36 +0300
commit5f4445c3d384741c45242f077b3c0dbf76234ee8 (patch)
tree21962b2905103f2b3a585bda0ba6e60a669cb190 /app/views/commits
parent7af16bbb0fdce36cf8b7e43e5cd64a712dfdaa1d (diff)
downloadgitlab-ce-5f4445c3d384741c45242f077b3c0dbf76234ee8.tar.gz
store commits for MR as array of hashes
Diffstat (limited to 'app/views/commits')
-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 b2da4796db6..9d57edb1d97 100644
--- a/app/views/commits/_diffs.html.haml
+++ b/app/views/commits/_diffs.html.haml
@@ -16,7 +16,7 @@
- unless @suppress_diff
- diffs.each_with_index do |diff, i|
- next if diff.diff.empty?
- - file = (@commit.tree / diff.new_path)
+ - file = Tree.new(@repository, @commit.id, @ref, diff.new_path)
- file = (@commit.prev_commit.tree / diff.old_path) unless file
- next unless file
.file{id: "diff-#{i}"}