summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-09-07 01:46:12 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-09-07 08:45:37 -0300
commit42c061781a73215cd9e7fe7957367899b3ced1b2 (patch)
tree8f44101c3888d9704b374bed49f13d722796ff82 /lib
parent88239e941e1a4b05ca7eca7735a2b72e9312680e (diff)
downloadgitlab-ce-42c061781a73215cd9e7fe7957367899b3ced1b2.tar.gz
Encode remote root ref
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/gitaly_client/remote_service.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/gitaly_client/remote_service.rb b/lib/gitlab/gitaly_client/remote_service.rb
index 6415c64b4e2..4661448621b 100644
--- a/lib/gitlab/gitaly_client/remote_service.rb
+++ b/lib/gitlab/gitaly_client/remote_service.rb
@@ -1,6 +1,8 @@
module Gitlab
module GitalyClient
class RemoteService
+ include Gitlab::EncodingHelper
+
MAX_MSG_SIZE = 128.kilobytes.freeze
def self.exists?(remote_url)
@@ -61,7 +63,7 @@ module Gitlab
response = GitalyClient.call(@storage, :remote_service,
:find_remote_root_ref, request)
- response.ref.presence
+ encode_utf8(response.ref)
end
def update_remote_mirror(ref_name, only_branches_matching)