MCPcopy Create free account
hub / github.com/anomalyco/opencode / githubRemote

Function githubRemote

packages/core/src/repository.ts:168–172  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

166}
167
168function githubRemote(pathname: string) {
169 const base = process.env.OPENCODE_REPO_CLONE_GITHUB_BASE_URL
170 if (!base) return `https://github.com/${pathname}.git`
171 return new URL(`${pathname}.git`, withSlash(base)).href
172}
173
174function buildRemote(input: { host: string; segments: string[]; remote?: string; protocol?: string }) {
175 const segments = input.segments.map(trimGitSuffix).filter(Boolean)

Callers 2

parseFunction · 0.70
buildRemoteFunction · 0.70

Calls 1

withSlashFunction · 0.70

Tested by

no test coverage detected