MCPcopy Index your code
hub / github.com/TruthHun/BookStack / GitClone

Function GitClone

utils/util.go:767–771  ·  view source on GitHub ↗

Git Clone

(url, folder string)

Source from the content-addressed store, hash-verified

765
766// Git Clone
767func GitClone(url, folder string) error {
768 os.RemoveAll(folder)
769 args := []string{"clone", url, folder}
770 return exec.Command("git", args...).Run()
771}
772
773// 处理http响应成败
774func HandleResponse(resp *http.Response, err error) error {

Callers 1

GitPullMethod · 0.92

Calls 1

RunMethod · 0.80

Tested by

no test coverage detected