now render the correct authorname and message
This commit is contained in:
parent
34cc38b6f5
commit
c62715acc9
2 changed files with 2 additions and 23 deletions
|
@ -13,27 +13,6 @@ Grit::Blob.class_eval do
|
|||
end
|
||||
end
|
||||
|
||||
Grit::Commit.class_eval do
|
||||
def to_hash
|
||||
{
|
||||
'id' => id,
|
||||
'parents' => parents.map { |p| { 'id' => p.id } },
|
||||
'tree' => tree.id,
|
||||
'message' => Gitlab::Encode.utf8(message),
|
||||
'author' => {
|
||||
'name' => Gitlab::Encode.utf8(author.name),
|
||||
'email' => author.email
|
||||
},
|
||||
'committer' => {
|
||||
'name' => Gitlab::Encode.utf8(committer.name),
|
||||
'email' => committer.email
|
||||
},
|
||||
'authored_date' => authored_date.xmlschema,
|
||||
'committed_date' => committed_date.xmlschema,
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
Grit::Diff.class_eval do
|
||||
def old_path
|
||||
Gitlab::Encode.utf8 @a_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue