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

Function CloneToTmp

internal/pullbox/git/git.go:15–25  ·  view source on GitHub ↗
(repo string)

Source from the content-addressed store, hash-verified

13)
14
15func CloneToTmp(repo string) (string, error) {
16 tmpDir, err := fileutil.CreateDevboxTempDir()
17 if err != nil {
18 return "", err
19 }
20
21 if err := clone(repo, tmpDir); err != nil {
22 return "", err
23 }
24 return tmpDir, nil
25}
26
27func IsRepoURL(url string) bool {
28 // For now only support ssh

Callers 1

PullMethod · 0.92

Calls 2

CreateDevboxTempDirFunction · 0.92
cloneFunction · 0.85

Tested by

no test coverage detected