MCPcopy Create free account
hub / github.com/nikivdev/go / gitCloneTo

Function gitCloneTo

cli/flow/main.go:3795–3804  ·  view source on GitHub ↗
(ctx *snap.Context, cloneURL, targetDir string)

Source from the content-addressed store, hash-verified

3793}
3794
3795func gitCloneTo(ctx *snap.Context, cloneURL, targetDir string) error {
3796 cmd := exec.Command("git", "clone", cloneURL, targetDir)
3797 cmd.Stdout = ctx.Stdout()
3798 cmd.Stderr = ctx.Stderr()
3799 cmd.Stdin = ctx.Stdin()
3800 if err := cmd.Run(); err != nil {
3801 return fmt.Errorf("git clone %s: %w", cloneURL, err)
3802 }
3803 return nil
3804}
3805
3806func runGitFetchUpstream(ctx *snap.Context) error {
3807 if err := ensureGitRepository(); err != nil {

Callers 1

privateForkRepoFlowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected