MCPcopy Index your code
hub / github.com/anomalyco/opencode / githubRemote

Function githubRemote

packages/opencode/src/util/repository.ts:99–103  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

97}
98
99function githubRemote(pathname: string) {
100 const base = process.env.OPENCODE_REPO_CLONE_GITHUB_BASE_URL
101 if (!base) return `https://github.com/${pathname}.git`
102 return new URL(`${pathname}.git`, withSlash(base)).href
103}
104
105function buildRemoteReference(input: { host: string; segments: string[]; remote?: string; protocol?: string }) {
106 const segments = input.segments.map(trimGitSuffix).filter(Boolean)

Callers 2

buildRemoteReferenceFunction · 0.70
parseRepositoryReferenceFunction · 0.70

Calls 1

withSlashFunction · 0.70

Tested by

no test coverage detected