gitlabhq/config/initializers/3_grit_ext.rb

10 lines
198 B
Ruby

require 'grit'
require 'pygments'
Grit::Git.git_timeout = Gitlab.config.git_timeout
Grit::Git.git_max_size = Gitlab.config.git_max_size
Grit::Blob.class_eval do
include Linguist::BlobHelper
end