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

Function addRemote

_examples/common_test.go:137–142  ·  view source on GitHub ↗
(local, remote string)

Source from the content-addressed store, hash-verified

135}
136
137func addRemote(local, remote string) {
138 cmd := exec.Command("git", "remote", "add", "origin", remote)
139 cmd.Dir = local
140 err := cmd.Run()
141 CheckIfError(err)
142}
143
144func testExample(t *testing.T, name, dir string) {
145 arguments := append([]string{"run", dir}, args[name]...)

Callers 1

Calls 2

CheckIfErrorFunction · 0.85
CommandMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…