提交 72f984e3 编写于 作者: R randx

Prevent grit from caching graph commits

上级 1c9351ab
......@@ -15,7 +15,7 @@
= link_to project_commits_path(@project, tag.name), class: "" do
%i.icon-tag
= tag.name
%small.light= truncate(tag.message, length: 70)
%small.light= truncate(tag.message || '', length: 70)
%td
= image_tag gravatar_icon(commit.author_email), class: "avatar s16"
= link_to project_commit_path(@project, commit.id), class: 'commit_short_id' do
......
......@@ -9,7 +9,7 @@ module Gitlab
def self.to_graph(project)
@repo = project.repo
commits = Grit::Commit.find_all(@repo, nil, {max_count: 650})
commits = Grit::Commit.find_all(@repo, nil, {max_count: 650}).dup
ref_cache = {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册