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

Method Execute

cli/go-git/upload_pack.go:25–37  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

ServeUploadPackFunction · 0.92

Tested by

no test coverage detected