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

Function setEmptyRemote

_examples/common_test.go:122–126  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

120}
121
122func setEmptyRemote(dir string) string {
123 remote := createBareRepository(tempFolder())
124 setRemote(dir, remote)
125 return dir
126}
127
128func setRemote(local, remote string) {
129 cmd := exec.Command("git", "remote", "set-url", "origin", remote)

Callers 1

common_test.goFile · 0.85

Calls 3

createBareRepositoryFunction · 0.85
tempFolderFunction · 0.85
setRemoteFunction · 0.85

Tested by

no test coverage detected