MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / GetCommand4RepositoryUrl

Method GetCommand4RepositoryUrl

cli/pkg/common/git.go:75–77  ·  view source on GitHub ↗

获取检查 git repo 是否存在的command

(actualGitRepoUrl string)

Source from the content-addressed store, hash-verified

73
74// 获取检查 git repo 是否存在的command
75func (g gitOperation) GetCommand4RepositoryUrl(actualGitRepoUrl string) string {
76 return fmt.Sprintf(`curl -s -o /dev/null -I -w "%%{http_code}" %v`, actualGitRepoUrl)
77}
78
79// git repository 的可访问状态
80type GitRepoAccessStatusEnum string

Callers 3

GitCloneMethod · 0.80
GitCloneMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected