summaryrefslogtreecommitdiff
path: root/lib/commit_ext.rb
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2011-10-26 23:35:17 +0500
committerNihad Abbasov <narkoz.2008@gmail.com>2011-10-26 23:35:17 +0500
commitf1e6d9be90c9f02ecbb334900e34f9a2a15c4530 (patch)
tree8bd2a0de081fe6763f7738bb45433043e3dddcea /lib/commit_ext.rb
parente0f4a37f3d9fba676c60d28677dfd1d7c9dfd5ac (diff)
parentf1e25f25635c64f1c994d01c90a8e50c8be1f81f (diff)
downloadgitlab-ce-f1e6d9be90c9f02ecbb334900e34f9a2a15c4530.tar.gz
Merge branch 'assets-refactoring' into dev
Conflicts: app/controllers/issues_controller.rb app/views/issues/index.html.haml
Diffstat (limited to 'lib/commit_ext.rb')
-rw-r--r--lib/commit_ext.rb8
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