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:
Diffstat (limited to 'internal/gitaly/service/ref/branches.go')
-rw-r--r--internal/gitaly/service/ref/branches.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/gitaly/service/ref/branches.go b/internal/gitaly/service/ref/branches.go
index 5250786f9..a5dc4dd2a 100644
--- a/internal/gitaly/service/ref/branches.go
+++ b/internal/gitaly/service/ref/branches.go
@@ -5,7 +5,6 @@ import (
"errors"
"gitlab.com/gitlab-org/gitaly/internal/git"
- "gitlab.com/gitlab-org/gitaly/internal/git/localrepo"
"gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
@@ -16,7 +15,7 @@ func (s *server) FindBranch(ctx context.Context, req *gitalypb.FindBranchRequest
return nil, status.Errorf(codes.InvalidArgument, "Branch name cannot be empty")
}
- repo := localrepo.New(s.gitCmdFactory, req.GetRepository(), s.cfg)
+ repo := s.localrepo(req.GetRepository())
branchName := git.NewReferenceNameFromBranchName(string(req.GetName()))
branchRef, err := repo.GetReference(ctx, branchName)