(url, dst string)
| 40 | } |
| 41 | |
| 42 | func cloneGitHistory(url, dst string) error { |
| 43 | // See https://stackoverflow.com/questions/38999901/clone-only-the-git-directory-of-a-git-repo |
| 44 | cmd := cmdutil.CommandTTY("git", "clone", "--no-checkout", url, dst) |
| 45 | cmd.Dir = dst |
| 46 | return errors.WithStack(cmd.Run()) |
| 47 | } |
| 48 | |
| 49 | func createCommit(dir string) error { |
| 50 | cmd := cmdutil.CommandTTY("git", "add", ".") |
no test coverage detected