summaryrefslogtreecommitdiff
path: root/lib/gitlab/git_post_receive.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/git_post_receive.rb')
-rw-r--r--lib/gitlab/git_post_receive.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/git_post_receive.rb b/lib/gitlab/git_post_receive.rb
index 426436c2164..7d98cb6191e 100644
--- a/lib/gitlab/git_post_receive.rb
+++ b/lib/gitlab/git_post_receive.rb
@@ -21,7 +21,7 @@ module Gitlab
changes.each do |change|
change.strip!
- oldrev, newrev, ref = change.split(' ')
+ oldrev, newrev, ref = change.split(" ")
yield oldrev, newrev, ref
end
@@ -34,14 +34,14 @@ module Gitlab
end
def utf8_encode_changes(changes)
- changes.force_encoding('UTF-8')
+ changes.force_encoding("UTF-8")
return changes if changes.valid_encoding?
# Convert non-UTF-8 branch/tag names to UTF-8 so they can be dumped as JSON.
detection = CharlockHolmes::EncodingDetector.detect(changes)
return changes unless detection && detection[:encoding]
- CharlockHolmes::Converter.convert(changes, detection[:encoding], 'UTF-8')
+ CharlockHolmes::Converter.convert(changes, detection[:encoding], "UTF-8")
end
end
end