diff options
author | Saito <saitowu@gmail.com> | 2012-05-30 11:47:26 +0800 |
---|---|---|
committer | Saito <saitowu@gmail.com> | 2012-05-30 11:47:26 +0800 |
commit | c71a76e71a33315977797db3e72be1f76462183f (patch) | |
tree | cd1fe9b862929b0dbb131d649de2637a8f0f97cc /lib/graph_commit.rb | |
parent | efd9a717c10f1cafd05fb20729eafb61226d9c1d (diff) | |
download | gitlab-ce-c71a76e71a33315977797db3e72be1f76462183f.tar.gz |
fix graph problem if authorname or message isnot utf8 encoding
Diffstat (limited to 'lib/graph_commit.rb')
-rw-r--r-- | lib/graph_commit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/graph_commit.rb b/lib/graph_commit.rb index 0080e856402..54550d99cf6 100644 --- a/lib/graph_commit.rb +++ b/lib/graph_commit.rb @@ -96,13 +96,13 @@ class GraphCommit h[:parents] = self.parents.collect do |p| [p.id,0,0] end - h[:author] = author.name.force_encoding("UTF-8") + h[:author] = author.name h[:time] = time h[:space] = space h[:refs] = refs.collect{|r|r.name}.join(" ") unless refs.nil? h[:id] = sha h[:date] = date - h[:message] = message.force_encoding("UTF-8") + h[:message] = message h[:login] = author.email h end |