Commit 26bdeb21 authored by Saito's avatar Saito

commit safe_commit

parent 2a874a00
...@@ -3,13 +3,7 @@ module CommitExt ...@@ -3,13 +3,7 @@ module CommitExt
attr_accessor :refs attr_accessor :refs
def safe_message def safe_message
message.encode("UTF-8", message.force_encoding(Encoding::UTF_8)
:invalid => :replace,
:undef => :replace,
:universal_newline => true,
:replace => "")
rescue
"-- invalid encoding for commit message"
end end
def created_at def created_at
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment