Commit 7e8bf92b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

remove unnecessary decorations

parent 94390fc7
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
{ {
parents: parents_zip_spaces(c.parents(@graph.map), c.parent_spaces), parents: parents_zip_spaces(c.parents(@graph.map), c.parent_spaces),
author: { author: {
name: c.author.name, name: c.author_name,
email: c.author.email, email: c.author_email,
icon: gravatar_icon(c.author.email, 20) icon: gravatar_icon(c.author_email, 20)
}, },
time: c.time, time: c.time,
space: c.spaces.first, space: c.spaces.first,
......
...@@ -20,10 +20,8 @@ module Gitlab ...@@ -20,10 +20,8 @@ module Gitlab
return return
end end
@commit = Commit.new(first) @commit = first
@commits = repository.commits_between(last.id, first.id) @commits = repository.commits_between(last.id, first.id)
@commits = @commits.map { |c| Commit.new(c) }
@diffs = if @commits.size > 100 @diffs = if @commits.size > 100
[] []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment