Commit 72f26255 authored by Alejandro Rodríguez's avatar Alejandro Rodríguez

Include missing Gitlab::GitalyClient.encode method in 9-5-stable

parent 613a02b4
......@@ -100,5 +100,9 @@ module Gitlab
path = Rails.root.join(SERVER_VERSION_FILE)
path.read.chomp
end
def self.encode(s)
s.dup.force_encoding(Encoding::ASCII_8BIT)
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment