From d005af25ab3224efa0d23be53858710f77e672c6 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Fri, 21 Jan 2022 11:05:19 +0000 Subject: Optionally use SSHUploadPackWithSidechannel If the GitLab API returns an allowed response with use_sidechannel set to true, gitlab-shell will establish a sidechannel connection and use SSHUploadPackWithSidechannel instead of SSHUploadPack. This is an efficiency improvement. --- internal/command/receivepack/gitalycall.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/command/receivepack/gitalycall.go') diff --git a/internal/command/receivepack/gitalycall.go b/internal/command/receivepack/gitalycall.go index 072656a..6bd9f49 100644 --- a/internal/command/receivepack/gitalycall.go +++ b/internal/command/receivepack/gitalycall.go @@ -30,7 +30,7 @@ func (c *Command) performGitalyCall(ctx context.Context, response *accessverifie GitConfigOptions: response.GitConfigOptions, } - return gc.RunGitalyCommand(ctx, func(ctx context.Context, conn *grpc.ClientConn) (int32, error) { + return gc.RunGitalyCommand(ctx, func(ctx context.Context, conn *grpc.ClientConn, registry *client.SidechannelRegistry) (int32, error) { ctx, cancel := gc.PrepareContext(ctx, request.Repository, response, c.Args.Env) defer cancel() -- cgit v1.2.1