diff options
author | John Cai <jcai@gitlab.com> | 2019-04-02 21:15:59 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2019-04-25 08:17:12 +0300 |
commit | 2370e5d04a47a913396bddd0551361c9e3a2cdc1 (patch) | |
tree | c61b556c81fd5ae01b259774e91b64055d99a791 /lib/gitlab | |
parent | f3b3d8b164933a0c8dd3ed505f1ff03a0910cd87 (diff) |
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/gitlab')
-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 |