MCPcopy Index your code
hub / github.com/jetify-com/devbox / cloneGitHistory

Function cloneGitHistory

internal/pullbox/git/push.go:42–47  ·  view source on GitHub ↗
(url, dst string)

Source from the content-addressed store, hash-verified

40}
41
42func 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
49func createCommit(dir string) error {
50 cmd := cmdutil.CommandTTY("git", "add", ".")

Callers 1

PushFunction · 0.85

Calls 2

CommandTTYFunction · 0.92
RunMethod · 0.65

Tested by

no test coverage detected