OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a874a0
)
commit safe_commit
author
Saito
<saitowu@gmail.com>
Fri, 18 Nov 2011 02:55:08 +0000
(10:55 +0800)
committer
Saito
<saitowu@gmail.com>
Fri, 18 Nov 2011 02:55:08 +0000
(10:55 +0800)
lib/commit_ext.rb
patch
|
blob
|
history
diff --git
a/lib/commit_ext.rb
b/lib/commit_ext.rb
index
91a4c05
..
0e04591
100644
(file)
--- 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