Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSaito <saitowu@gmail.com>2011-11-18 06:55:08 +0400
committerSaito <saitowu@gmail.com>2011-11-18 06:55:08 +0400
commit26bdeb2107d7d55aa89132d9c060421bd377c9f0 (patch)
tree186965c77df473f0a2c3eb3891d10690334a995b /lib
parent2a874a00dc14b71f2967f137144dd25a14df26c5 (diff)
commit safe_commit
Diffstat (limited to 'lib')
-rw-r--r--lib/commit_ext.rb8
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