diff options
author | Saito <saitowu@gmail.com> | 2011-11-18 06:55:08 +0400 |
---|---|---|
committer | Saito <saitowu@gmail.com> | 2011-11-18 06:55:08 +0400 |
commit | 26bdeb2107d7d55aa89132d9c060421bd377c9f0 (patch) | |
tree | 186965c77df473f0a2c3eb3891d10690334a995b /lib | |
parent | 2a874a00dc14b71f2967f137144dd25a14df26c5 (diff) |
commit safe_commit
Diffstat (limited to 'lib')
-rw-r--r-- | lib/commit_ext.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/commit_ext.rb b/lib/commit_ext.rb index 91a4c059b02..0e045911843 100644 --- a/lib/commit_ext.rb +++ b/lib/commit_ext.rb @@ -3,13 +3,7 @@ module CommitExt attr_accessor :refs def safe_message - message.encode("UTF-8", - :invalid => :replace, - :undef => :replace, - :universal_newline => true, - :replace => "") - rescue - "-- invalid encoding for commit message" + message.force_encoding(Encoding::UTF_8) end def created_at |