diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2022-01-21 11:05:19 +0000 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2022-01-21 11:05:19 +0000 |
commit | d005af25ab3224efa0d23be53858710f77e672c6 (patch) | |
tree | 0e5363ea426f2d66a646f63f3099ff8361c63e38 /internal/command/receivepack | |
parent | bc25e92dd824591688cbe88cbbeb891b6459b9a9 (diff) | |
download | gitlab-shell-jv-ssh-sidechannel.tar.gz |
Optionally use SSHUploadPackWithSidechanneljv-ssh-sidechannel
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.
Diffstat (limited to 'internal/command/receivepack')
-rw-r--r-- | internal/command/receivepack/gitalycall.go | 2 |
1 files changed, 1 insertions, 1 deletions
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() |