diff options
author | John Cai <jcai@gitlab.com> | 2019-04-02 11:15:59 -0700 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2019-04-24 22:17:12 -0700 |
commit | 2370e5d04a47a913396bddd0551361c9e3a2cdc1 (patch) | |
tree | c61b556c81fd5ae01b259774e91b64055d99a791 /lib | |
parent | f3b3d8b164933a0c8dd3ed505f1ff03a0910cd87 (diff) | |
download | gitlab-ce-2370e5d04a47a913396bddd0551361c9e3a2cdc1.tar.gz |
Update list_last_commits_for_tree response path field to path_bytes
Updates the gitaly client to use path_bytes field instead of the
deprecated path field in list_last_commits_for_tree_response.
Also adds a test to guard against non-utf8 path data
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/gitaly_client/commit_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/gitaly_client/commit_service.rb b/lib/gitlab/gitaly_client/commit_service.rb index 0d5debfcd01..2896b7e1ce0 100644 --- a/lib/gitlab/gitaly_client/commit_service.rb +++ b/lib/gitlab/gitaly_client/commit_service.rb @@ -174,7 +174,7 @@ module Gitlab response.each_with_object({}) do |gitaly_response, hsh| gitaly_response.commits.each do |commit_for_tree| - hsh[commit_for_tree.path] = Gitlab::Git::Commit.new(@repository, commit_for_tree.commit) + hsh[commit_for_tree.path_bytes] = Gitlab::Git::Commit.new(@repository, commit_for_tree.commit) end end end |