From ca4ad715f56a68fdb0a77cc783b2480393734556 Mon Sep 17 00:00:00 2001 From: Zeger-Jan van de Weg Date: Mon, 25 Feb 2019 13:03:35 +0100 Subject: Remove Ruby implemenation of get_commit_messages This RPC was served by the Ruby sidecar, but since https://gitlab.com/gitlab-org/gitaly/merge_requests/1012 the implemenation is in Go. One release later the code can be removed, which is now. Closes: https://gitlab.com/gitlab-org/gitaly/issues/1450 --- ruby/lib/gitaly_server/commit_service.rb | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'ruby') diff --git a/ruby/lib/gitaly_server/commit_service.rb b/ruby/lib/gitaly_server/commit_service.rb index e4916ec70..30fd9f182 100644 --- a/ruby/lib/gitaly_server/commit_service.rb +++ b/ruby/lib/gitaly_server/commit_service.rb @@ -96,28 +96,6 @@ module GitalyServer end end - def get_commit_messages(request, call) - repository = Gitlab::Git::Repository.from_gitaly(request.repository, call) - - Enumerator.new do |y| - request.commit_ids.each do |commit_id| - commit = Gitlab::Git::Commit.find(repository, commit_id) - next unless commit - - response = Gitaly::GetCommitMessagesResponse.new(commit_id: commit.id) - io = StringIO.new(commit.message) - - while chunk = io.read(Gitlab.config.git.max_commit_or_tag_message_size) - response.message = chunk - - y.yield response - - response = Gitaly::GetCommitMessagesResponse.new - end - end - end - end - private # yields either signature chunks or signed_text chunks to the passed block -- cgit v1.2.3