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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-30 15:08:43 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-30 15:08:43 +0300
commite99d2e196cd87ed071f856f80ae085c7be640876 (patch)
tree9caaeb14cc4997180b480f1a22600abd5f92ac06 /lib/gitlab/gitaly_client
parent14846d722eb52ea70bc3092eb5da80ce1c2e9750 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/gitaly_client')
-rw-r--r--lib/gitlab/gitaly_client/ref_service.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/gitlab/gitaly_client/ref_service.rb b/lib/gitlab/gitaly_client/ref_service.rb
index bb6bc3121bd..d2b702f3a6d 100644
--- a/lib/gitlab/gitaly_client/ref_service.rb
+++ b/lib/gitlab/gitaly_client/ref_service.rb
@@ -270,15 +270,13 @@ module Gitlab
end
def consume_find_local_branches_response(response)
- if Feature.enabled?(:gitaly_simplify_find_local_branches_response, type: :undefined)
- response.flat_map do |message|
+ response.flat_map do |message|
+ if message.local_branches.present?
message.local_branches.map do |branch|
target_commit = Gitlab::Git::Commit.decorate(@repository, branch.target_commit)
Gitlab::Git::Branch.new(@repository, branch.name, branch.target_commit.id, target_commit)
end
- end
- else
- response.flat_map do |message|
+ else
message.branches.map do |gitaly_branch|
Gitlab::Git::Branch.new(
@repository,