d62200cad4
* Remove trailing whitespace * Converts hard-tabs into two-space soft-tabs * Remove consecutive blank lines
12 lines
290 B
Ruby
12 lines
290 B
Ruby
module CommitExt
|
|
def safe_message
|
|
message.encode("UTF-8",
|
|
:invalid => :replace,
|
|
:undef => :replace,
|
|
:universal_newline => true,
|
|
:replace => "")
|
|
rescue
|
|
"-- invalid encoding for commit message"
|
|
end
|
|
end
|