blob: 5e38acaede3b4980b5392dc940eda1d386c11f00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package handler
import (
"fmt"
pb "gitlab.com/gitlab-org/gitaly-proto/go"
)
func ReceivePack(gitalyAddress string, request *pb.SSHReceivePackRequest) error {
repoPath := request.Repository.Path
if repoPath == "" {
return fmt.Errorf("empty path in repository message")
}
return execCommand("git-receive-pack", repoPath)
}
|