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:
authorMichael Leopard <mleopard@gitlab.com>2019-02-26 17:42:36 +0300
committerMichael Leopard <mleopard@gitlab.com>2019-02-26 17:42:36 +0300
commit53cdf1c00ebee162b29ba883a5fecaa80b5e59b1 (patch)
treedb41befb4d73268741abb239d59eb1bab41195db
parent913406d3d0b9fd6f833095b578660b445495475c (diff)
Removing find_branch ruby implementation
-rw-r--r--ruby/lib/gitaly_server/ref_service.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/ruby/lib/gitaly_server/ref_service.rb b/ruby/lib/gitaly_server/ref_service.rb
index b6fd4e5da..9df572e33 100644
--- a/ruby/lib/gitaly_server/ref_service.rb
+++ b/ruby/lib/gitaly_server/ref_service.rb
@@ -44,21 +44,6 @@ module GitalyServer
raise GRPC::Internal.new(e.to_s)
end
- # Deprecated: Will be removed in GitLab 11.8
- def find_branch(request, call)
- branch_name = request.name
- raise GRPC::InvalidArgument.new("empty Name") if branch_name.empty?
-
- repo = Gitlab::Git::Repository.from_gitaly(request.repository, call)
- rugged_branch = repo.find_branch(branch_name)
- gitaly_branch = Gitaly::Branch.new(
- name: rugged_branch.name.b,
- target_commit: gitaly_commit_from_rugged(rugged_branch.dereferenced_target.raw_commit)
- ) unless rugged_branch.nil?
-
- Gitaly::FindBranchResponse.new(branch: gitaly_branch)
- end
-
def find_all_tags(request, call)
repo = Gitlab::Git::Repository.from_gitaly(request.repository, call)