MCPcopy Index your code
hub / github.com/go-git/go-git / Execute

Method Execute

cli/go-git/update_server_info.go:26–34  ·  view source on GitHub ↗

Execute runs the command.

(args []string)

Source from the content-addressed store, hash-verified

24
25// Execute runs the command.
26func (c *CmdUpdateServerInfo) Execute(args []string) error {
27 r, err := git.PlainOpen(".")
28 if err != nil {
29 return err
30 }
31
32 fs := r.Storer.(*filesystem.Storage).Filesystem()
33 return serverinfo.UpdateServerInfo(r.Storer, fs)
34}

Callers

nothing calls this directly

Calls 2

UpdateServerInfoFunction · 0.92
FilesystemMethod · 0.65

Tested by

no test coverage detected