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>2018-12-14 19:50:47 +0300
committerMichael Leopard <mleopard@gitlab.com>2018-12-14 19:50:47 +0300
commit2e83dc8f2905d1c7263b89ad1c5d61124598dda5 (patch)
tree9a32c017f87b64ecad6ca7cae4a4608b437ab282
parent991de70964261fa57c5e0b17dce0a715c96e8360 (diff)
Updated changelog. Removed FindBranch ruby function.
-rw-r--r--changelogs/unreleased/1293-re-implement-findbranch-in-go.yml5
-rw-r--r--ruby/lib/gitaly_server/ref_service.rb14
2 files changed, 5 insertions, 14 deletions
diff --git a/changelogs/unreleased/1293-re-implement-findbranch-in-go.yml b/changelogs/unreleased/1293-re-implement-findbranch-in-go.yml
new file mode 100644
index 000000000..73adc15d6
--- /dev/null
+++ b/changelogs/unreleased/1293-re-implement-findbranch-in-go.yml
@@ -0,0 +1,5 @@
+---
+title: Re-implemented FindBranch in Go
+merge_request: 981
+author:
+type: performance
diff --git a/ruby/lib/gitaly_server/ref_service.rb b/ruby/lib/gitaly_server/ref_service.rb
index 4c0497cf9..9cd90d31a 100644
--- a/ruby/lib/gitaly_server/ref_service.rb
+++ b/ruby/lib/gitaly_server/ref_service.rb
@@ -44,20 +44,6 @@ module GitalyServer
raise GRPC::Internal.new(e.to_s)
end
- 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)