remove encode lib, clean all encoded area.
This commit is contained in:
parent
96211b01a8
commit
f1ac2a616b
10 changed files with 10 additions and 73 deletions
|
@ -1,6 +1,5 @@
|
|||
class Commit
|
||||
include ActiveModel::Conversion
|
||||
include Gitlab::Encode
|
||||
include StaticModel
|
||||
extend ActiveModel::Naming
|
||||
|
||||
|
@ -112,7 +111,7 @@ class Commit
|
|||
end
|
||||
|
||||
def safe_message
|
||||
@safe_message ||= utf8 message
|
||||
@safe_message ||= message
|
||||
end
|
||||
|
||||
def created_at
|
||||
|
@ -124,7 +123,7 @@ class Commit
|
|||
end
|
||||
|
||||
def author_name
|
||||
utf8 author.name
|
||||
author.name
|
||||
end
|
||||
|
||||
# Was this commit committed by a different person than the original author?
|
||||
|
@ -133,7 +132,7 @@ class Commit
|
|||
end
|
||||
|
||||
def committer_name
|
||||
utf8 committer.name
|
||||
committer.name
|
||||
end
|
||||
|
||||
def committer_email
|
||||
|
|
|
@ -8,7 +8,7 @@ class Tree
|
|||
def initialize(raw_tree, project, ref = nil, path = nil)
|
||||
@project, @ref, @path = project, ref, path
|
||||
@tree = if path.present?
|
||||
raw_tree / path.dup.force_encoding('ascii-8bit')
|
||||
raw_tree / path
|
||||
else
|
||||
raw_tree
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue