(pathname: string)
| 166 | } |
| 167 | |
| 168 | function 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 | |
| 174 | function buildRemote(input: { host: string; segments: string[]; remote?: string; protocol?: string }) { |
| 175 | const segments = input.segments.map(trimGitSuffix).filter(Boolean) |
no test coverage detected