diff options
| author | Nihad Abbasov <narkoz.2008@gmail.com> | 2011-10-26 18:46:25 +0500 |
|---|---|---|
| committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2011-10-26 18:46:25 +0500 |
| commit | d62200cad430565bd9f80befaf329297120330b5 (patch) | |
| tree | 6217dd41e6f86e657513b509ed7a3f2bfdfa70ab /lib/commit_ext.rb | |
| parent | f6a67fbad5119e3d95e33cfd4f4e4992707d5ba0 (diff) | |
| download | gitlab-ce-d62200cad430565bd9f80befaf329297120330b5.tar.gz | |
clean-up code
* Remove trailing whitespace
* Converts hard-tabs into two-space soft-tabs
* Remove consecutive blank lines
Diffstat (limited to 'lib/commit_ext.rb')
| -rw-r--r-- | lib/commit_ext.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/commit_ext.rb b/lib/commit_ext.rb index e09dbdaf8ef..411809f05ed 100644 --- a/lib/commit_ext.rb +++ b/lib/commit_ext.rb @@ -1,11 +1,11 @@ module CommitExt def safe_message - message.encode("UTF-8", - :invalid => :replace, - :undef => :replace, + message.encode("UTF-8", + :invalid => :replace, + :undef => :replace, :universal_newline => true, :replace => "") - rescue + rescue "-- invalid encoding for commit message" end end |
