Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ IsURL
Function
IsURL
git/url.go:8–10 ·
view source on GitHub ↗
(u string)
Source
from the content-addressed store, hash-verified
6
)
7
8
func
IsURL(u string) bool {
9
return
strings.HasPrefix(u,
"git@"
) || isSupportedProtocol(u)
10
}
11
12
func
isSupportedProtocol(u string) bool {
13
return
strings.HasPrefix(u,
"ssh:"
) ||
Callers
2
cloneRun
Function · 0.92
TestIsURL
Function · 0.85
Calls
1
isSupportedProtocol
Function · 0.85
Tested by
1
TestIsURL
Function · 0.68