MCPcopy Create free account
hub / github.com/belak/gitdir / cmdGitUploadPack

Method cmdGitUploadPack

ssh_commands.go:29–31  ·  view source on GitHub ↗
(ctx context.Context, s ssh.Session, cmd []string)

Source from the content-addressed store, hash-verified

27}
28
29func (serv *Server) cmdGitUploadPack(ctx context.Context, s ssh.Session, cmd []string) int {
30 return serv.cmdRepoAction(ctx, s, cmd, AccessLevelRead)
31}
32
33func (serv *Server) cmdRepoAction(ctx context.Context, s ssh.Session, cmd []string, access AccessLevel) int {
34 if len(cmd) != 2 {

Callers 1

handleSessionMethod · 0.95

Calls 1

cmdRepoActionMethod · 0.95

Tested by

no test coverage detected