(ctx *snap.Context, cloneURL, targetDir string)
| 3793 | } |
| 3794 | |
| 3795 | func 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 | |
| 3806 | func runGitFetchUpstream(ctx *snap.Context) error { |
| 3807 | if err := ensureGitRepository(); err != nil { |
no outgoing calls
no test coverage detected