()
| 81 | * Falls back to getOriginalCwd() if git root can't be determined. |
| 82 | */ |
| 83 | export function getAttributionRepoRoot(): string { |
| 84 | const cwd = getCwd() |
| 85 | return findGitRoot(cwd) ?? getOriginalCwd() |
| 86 | } |
| 87 | |
| 88 | // Cache for repo classification result. Primed once per process. |
| 89 | // 'internal' = remote matches INTERNAL_MODEL_REPOS allowlist |
no test coverage detected