diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-02 21:30:36 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-02 21:30:36 +0300 |
commit | 5f4445c3d384741c45242f077b3c0dbf76234ee8 (patch) | |
tree | 21962b2905103f2b3a585bda0ba6e60a669cb190 /app/views/commits | |
parent | 7af16bbb0fdce36cf8b7e43e5cd64a712dfdaa1d (diff) | |
download | gitlab-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.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 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}"} |