Prevent grit from caching graph commits
This commit is contained in:
parent
1c9351abf0
commit
72f984e3d3
2 changed files with 2 additions and 2 deletions
|
@ -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 = {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue