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

Function ExecuteOnPath

repository_test.go:3313–3320  ·  view source on GitHub ↗
(c *C, path string, cmds ...string)

Source from the content-addressed store, hash-verified

3311}
3312
3313func ExecuteOnPath(c *C, path string, cmds ...string) error {
3314 for _, cmd := range cmds {
3315 err := executeOnPath(path, cmd)
3316 c.Assert(err, IsNil)
3317 }
3318
3319 return nil
3320}
3321
3322func executeOnPath(path, cmd string) error {
3323 args := strings.Split(cmd, " ")

Callers 1

TestPullAddMethod · 0.85

Calls 1

executeOnPathFunction · 0.85

Tested by

no test coverage detected