MCPcopy Create free account
hub / github.com/go-git/go-git / Execute

Method Execute

cli/go-git/receive_pack.go:24–36  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

22}
23
24func (c *CmdReceivePack) Execute(args []string) error {
25 gitDir, err := filepath.Abs(c.Args.GitDir)
26 if err != nil {
27 return err
28 }
29
30 if err := file.ServeReceivePack(gitDir); err != nil {
31 fmt.Fprintln(os.Stderr, "ERR:", err)
32 os.Exit(128)
33 }
34
35 return nil
36}

Callers

nothing calls this directly

Calls 1

ServeReceivePackFunction · 0.92

Tested by

no test coverage detected