(url string)
| 25 | } |
| 26 | |
| 27 | func IsRepoURL(url string) bool { |
| 28 | // For now only support ssh |
| 29 | return strings.HasPrefix(url, "git@") || |
| 30 | (strings.HasPrefix(url, "https://") && strings.HasSuffix(url, ".git")) |
| 31 | } |
| 32 | |
| 33 | func clone(repo, dir string) error { |
| 34 | cmd := cmdutil.CommandTTY("git", "clone", repo, dir) |