diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-10-03 14:50:23 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-10-04 15:12:35 +0300 |
commit | 5c1e296eb7e90e54541613fefac4f242f055bf37 (patch) | |
tree | cb904eb88b19b373a0df57d0c59a25b641bbf146 /internal/service/operations/squash.go | |
parent | fa3e2a029b7f758a099e64c407c08588c41c3196 (diff) |
Rename gitaly proto import to gitalypb
This change the result of a grep + sed, to move away from pb, and use
gitalypb instead. The gitalypb points to a vendorred directory that has
the same name. This would fix the use of goimports.
See also: https://gitlab.com/gitlab-org/gitaly-proto/merge_requests/213
Diffstat (limited to 'internal/service/operations/squash.go')
-rw-r--r-- | internal/service/operations/squash.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/service/operations/squash.go b/internal/service/operations/squash.go index 83e1ff88e..8e007f693 100644 --- a/internal/service/operations/squash.go +++ b/internal/service/operations/squash.go @@ -3,14 +3,14 @@ package operations import ( "fmt" - pb "gitlab.com/gitlab-org/gitaly-proto/go" + "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb" "gitlab.com/gitlab-org/gitaly/internal/rubyserver" "golang.org/x/net/context" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) -func (s *server) UserSquash(ctx context.Context, req *pb.UserSquashRequest) (*pb.UserSquashResponse, error) { +func (s *server) UserSquash(ctx context.Context, req *gitalypb.UserSquashRequest) (*gitalypb.UserSquashResponse, error) { if err := validateUserSquashRequest(req); err != nil { return nil, status.Errorf(codes.InvalidArgument, "UserSquash: %v", err) } @@ -28,7 +28,7 @@ func (s *server) UserSquash(ctx context.Context, req *pb.UserSquashRequest) (*pb return client.UserSquash(clientCtx, req) } -func validateUserSquashRequest(req *pb.UserSquashRequest) error { +func validateUserSquashRequest(req *gitalypb.UserSquashRequest) error { if req.GetRepository() == nil { return fmt.Errorf("empty Repository") } |