MCPcopy Create free account
hub / github.com/conforma/cli / SourceIsGit

Function SourceIsGit

internal/policy/source/git_config.go:40–42  ·  view source on GitHub ↗

SourceIsGit returns true if go-getter thinks the src looks like a git url

(src string)

Source from the content-addressed store, hash-verified

38
39// SourceIsGit returns true if go-getter thinks the src looks like a git url
40func SourceIsGit(src string) bool {
41 return detector.GitDetector(src)
42}
43
44// SourceIsHttp returns true if go-getter thinks the src looks like an http url
45func SourceIsHttp(src string) bool {

Callers 2

GetPolicyConfigFunction · 0.92
TestSourceIsGitFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestSourceIsGitFunction · 0.68