Commit 72f984e3d3505c5ff3dd1096f92d4be075fee04f

Authored by randx
1 parent 1c9351ab

Prevent grit from caching graph commits

app/views/repositories/tags.html.haml
... ... @@ -15,7 +15,7 @@
15 15 = link_to project_commits_path(@project, tag.name), class: "" do
16 16 %i.icon-tag
17 17 = tag.name
18   - %small.light= truncate(tag.message, length: 70)
  18 + %small.light= truncate(tag.message || '', length: 70)
19 19 %td
20 20 = image_tag gravatar_icon(commit.author_email), class: "avatar s16"
21 21 = link_to project_commit_path(@project, commit.id), class: 'commit_short_id' do
... ...
lib/gitlab/graph_commit.rb
... ... @@ -9,7 +9,7 @@ module Gitlab
9 9  
10 10 def self.to_graph(project)
11 11 @repo = project.repo
12   - commits = Grit::Commit.find_all(@repo, nil, {max_count: 650})
  12 + commits = Grit::Commit.find_all(@repo, nil, {max_count: 650}).dup
13 13  
14 14 ref_cache = {}
15 15  
... ...