diff options
author | Will Chandler <wchandler@gitlab.com> | 2023-09-19 19:57:30 +0300 |
---|---|---|
committer | Will Chandler <wchandler@gitlab.com> | 2023-09-19 20:00:31 +0300 |
commit | a80341741c8f37a7454b7a32bd23522fbcff080d (patch) | |
tree | d1a83ffa8b017022295001ee18abe7c27d1a8a79 | |
parent | 42a6e31a57ac3ba757f49f4d5bd37db330eff6ee (diff) |
repository: Use sidechannel when creating fork
`CreateFork()` uses the old `SSHUploadPack` method when fetching the
original repository, rather than the more efficient
`SSHUploadPackWithSidechannel`. Update it to use the latter.
-rw-r--r-- | internal/gitaly/service/repository/create_fork.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/service/repository/create_fork.go b/internal/gitaly/service/repository/create_fork.go index 2b9de00b1..e24c7370f 100644 --- a/internal/gitaly/service/repository/create_fork.go +++ b/internal/gitaly/service/repository/create_fork.go @@ -69,7 +69,7 @@ func (s *server) CreateFork(ctx context.Context, req *gitalypb.CreateForkRequest targetPath, }, }, - git.WithInternalFetch(&gitalypb.SSHUploadPackRequest{ + git.WithInternalFetchWithSidechannel(&gitalypb.SSHUploadPackWithSidechannelRequest{ Repository: sourceRepository, }), git.WithConfig(git.ConfigPair{ |