diff options
-rw-r--r-- | changelogs/unreleased/re-implement-findbranch.yml | 5 | ||||
-rw-r--r-- | ruby/lib/gitaly_server/ref_service.rb | 15 |
2 files changed, 5 insertions, 15 deletions
diff --git a/changelogs/unreleased/re-implement-findbranch.yml b/changelogs/unreleased/re-implement-findbranch.yml new file mode 100644 index 000000000..c84fef78c --- /dev/null +++ b/changelogs/unreleased/re-implement-findbranch.yml @@ -0,0 +1,5 @@ +--- +title: Removing find_branch ruby implementation +merge_request: 1096 +author: +type: removed 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) |