Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2019-02-25 15:03:35 +0300
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2019-02-25 15:03:35 +0300
commitca4ad715f56a68fdb0a77cc783b2480393734556 (patch)
tree47702800064e6ba1535fd5c06f6500453dc96977
parentc2985e16dc51fe7c4b2ec4bbc3688b131a6341bc (diff)
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
-rw-r--r--ruby/lib/gitaly_server/commit_service.rb22
1 files changed, 0 insertions, 22 deletions
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