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

Function cloneRepository

_examples/common_test.go:91–97  ·  view source on GitHub ↗
(url, folder string)

Source from the content-addressed store, hash-verified

89}
90
91func cloneRepository(url, folder string) string {
92 cmd := exec.Command("git", "clone", url, folder)
93 err := cmd.Run()
94 CheckIfError(err)
95
96 return folder
97}
98
99func createBareRepository(dir string) string {
100 return createRepository(dir, true)

Callers 1

common_test.goFile · 0.85

Calls 2

CheckIfErrorFunction · 0.85
CommandMethod · 0.65

Tested by

no test coverage detected