Skip to content
代码片段 群组 项目
提交 a336f01b 编辑于 作者: Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
浏览文件

Merge branch 'master' of github.com:gitlabhq/gitlabhq

No related branches found
No related tags found
无相关合并请求
...@@ -137,8 +137,18 @@ def expire_cache ...@@ -137,8 +137,18 @@ def expire_cache
def graph_log def graph_log
Rails.cache.fetch(cache_key(:graph_log)) do Rails.cache.fetch(cache_key(:graph_log)) do
stats = Gitlab::Git::GitStats.new(raw_repository, root_ref, Gitlab.config.git.timeout) commits = raw_repository.log(limit: 6000, skip_merges: true,
stats.parsed_log ref: root_ref)
commits.map do |rugged_commit|
commit = Gitlab::Git::Commit.new(rugged_commit)
{
author_name: commit.author_name.force_encoding('UTF-8'),
author_email: commit.author_email.force_encoding('UTF-8'),
additions: commit.stats.additions,
deletions: commit.stats.deletions
}
end
end end
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册