summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-02-11 18:30:05 -0500
committerRubén Dávila <rdavila84@gmail.com>2016-02-11 18:30:05 -0500
commit5a5ee6188ba2960b80d0e00fa5404ebb55135698 (patch)
treeeb9a0206e66c396620ce4af45b2434a325053380 /lib
parent07faf8144a63ad6effe63eac6cc0d02a1d67d6c3 (diff)
downloadgitlab-ce-5a5ee6188ba2960b80d0e00fa5404ebb55135698.tar.gz
Load all blob data when highlighting content for git-blame.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/blame.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/blame.rb b/lib/gitlab/blame.rb
index 313e6b9fc03..997a22779a0 100644
--- a/lib/gitlab/blame.rb
+++ b/lib/gitlab/blame.rb
@@ -40,6 +40,7 @@ module Gitlab
end
def highlighted_lines
+ @blob.load_all_data!(repository)
@highlighted_lines ||= Gitlab::Highlight.highlight(@blob.name, @blob.data).lines
end