(repo string)
| 13 | ) |
| 14 | |
| 15 | func 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 | |
| 27 | func IsRepoURL(url string) bool { |
| 28 | // For now only support ssh |
no test coverage detected