diff options
Diffstat (limited to 'internal/service/ref/branches.go')
-rw-r--r-- | internal/service/ref/branches.go | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/internal/service/ref/branches.go b/internal/service/ref/branches.go index fd31ddb13..30a39cd55 100644 --- a/internal/service/ref/branches.go +++ b/internal/service/ref/branches.go @@ -8,40 +8,11 @@ import ( "gitlab.com/gitlab-org/gitaly/internal/git" "gitlab.com/gitlab-org/gitaly/internal/git/log" - "gitlab.com/gitlab-org/gitaly/internal/rubyserver" "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) -func (s *server) CreateBranch(ctx context.Context, req *gitalypb.CreateBranchRequest) (*gitalypb.CreateBranchResponse, error) { - client, err := s.ruby.RefServiceClient(ctx) - if err != nil { - return nil, err - } - - clientCtx, err := rubyserver.SetHeaders(ctx, req.GetRepository()) - if err != nil { - return nil, err - } - - return client.CreateBranch(clientCtx, req) -} - -func (s *server) DeleteBranch(ctx context.Context, req *gitalypb.DeleteBranchRequest) (*gitalypb.DeleteBranchResponse, error) { - client, err := s.ruby.RefServiceClient(ctx) - if err != nil { - return nil, err - } - - clientCtx, err := rubyserver.SetHeaders(ctx, req.GetRepository()) - if err != nil { - return nil, err - } - - return client.DeleteBranch(clientCtx, req) -} - func (s *server) FindBranch(ctx context.Context, req *gitalypb.FindBranchRequest) (*gitalypb.FindBranchResponse, error) { refName := string(req.GetName()) if len(refName) == 0 { |