Commit 72f984e3d3505c5ff3dd1096f92d4be075fee04f
1 parent
1c9351ab
Exists in
master
and in
4 other branches
Prevent grit from caching graph commits
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/views/repositories/tags.html.haml
| @@ -15,7 +15,7 @@ | @@ -15,7 +15,7 @@ | ||
| 15 | = link_to project_commits_path(@project, tag.name), class: "" do | 15 | = link_to project_commits_path(@project, tag.name), class: "" do |
| 16 | %i.icon-tag | 16 | %i.icon-tag |
| 17 | = tag.name | 17 | = tag.name |
| 18 | - %small.light= truncate(tag.message, length: 70) | 18 | + %small.light= truncate(tag.message || '', length: 70) |
| 19 | %td | 19 | %td |
| 20 | = image_tag gravatar_icon(commit.author_email), class: "avatar s16" | 20 | = image_tag gravatar_icon(commit.author_email), class: "avatar s16" |
| 21 | = link_to project_commit_path(@project, commit.id), class: 'commit_short_id' do | 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,7 +9,7 @@ module Gitlab | ||
| 9 | 9 | ||
| 10 | def self.to_graph(project) | 10 | def self.to_graph(project) |
| 11 | @repo = project.repo | 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 | ref_cache = {} | 14 | ref_cache = {} |
| 15 | 15 |