diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-08-21 15:13:40 -0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-08-21 15:13:40 -0300 |
commit | b7ebb447d7a0f8e65c791d4f7af6e042b72ff644 (patch) | |
tree | c3286f70c8a108cb58e71e2143cbfbb71793a9f6 /lib | |
parent | 646aae3e4f0f9c547397fdf55cc2205b0171b565 (diff) | |
download | gitlab-ce-b7ebb447d7a0f8e65c791d4f7af6e042b72ff644.tar.gz |
Correctly encode string params for Gitaly's TreeEntries RPCgitaly-tree-entries-encoding
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/gitaly_client/commit_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/gitaly_client/commit_service.rb b/lib/gitlab/gitaly_client/commit_service.rb index b36e81278d6..2d58fb0186e 100644 --- a/lib/gitlab/gitaly_client/commit_service.rb +++ b/lib/gitlab/gitaly_client/commit_service.rb @@ -80,8 +80,8 @@ module Gitlab def tree_entries(repository, revision, path) request = Gitaly::GetTreeEntriesRequest.new( repository: @gitaly_repo, - revision: revision, - path: path.presence || '.' + revision: GitalyClient.encode(revision), + path: path.present? ? GitalyClient.encode(path) : '.' ) response = GitalyClient.call(@repository.storage, :commit_service, :get_tree_entries, request) |