MCPcopy
hub / github.com/cli/cli / isPossibleProtocol

Function isPossibleProtocol

git/url.go:21–26  ·  view source on GitHub ↗
(u string)

Source from the content-addressed store, hash-verified

19}
20
21func isPossibleProtocol(u string) bool {
22 return isSupportedProtocol(u) ||
23 strings.HasPrefix(u, "ftp:") ||
24 strings.HasPrefix(u, "ftps:") ||
25 strings.HasPrefix(u, "file:")
26}
27
28// ParseURL normalizes git remote urls
29func ParseURL(rawURL string) (*url.URL, error) {

Callers 1

ParseURLFunction · 0.85

Calls 1

isSupportedProtocolFunction · 0.85

Tested by

no test coverage detected