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

Function IsRepoURL

internal/pullbox/git/git.go:27–31  ·  view source on GitHub ↗
(url string)

Source from the content-addressed store, hash-verified

25}
26
27func 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
33func clone(repo, dir string) error {
34 cmd := cmdutil.CommandTTY("git", "clone", repo, dir)

Callers 1

PullMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected