Welcome to mirror list, hosted at ThFree Co, Russian Federation.

receive_pack.go « client - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2d8d68e44419ff32dcbbeb268f3f03a57ad9c9c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package client

import (
	"context"
	"io"

	"gitlab.com/gitlab-org/gitaly/v16/internal/gitaly/gitalyclient"
	"gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypb"
	"google.golang.org/grpc"
)

// ReceivePack proxies an SSH git-receive-pack (git push) session to Gitaly
func ReceivePack(ctx context.Context, conn *grpc.ClientConn, stdin io.Reader, stdout, stderr io.Writer, req *gitalypb.SSHReceivePackRequest) (int32, error) {
	return gitalyclient.ReceivePack(ctx, conn, stdin, stdout, stderr, req)
}