Commit 72f984e3 authored by randx's avatar randx

Prevent grit from caching graph commits

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment