()
| 34 | * Falls back to getOriginalCwd() if git root can't be determined. |
| 35 | */ |
| 36 | export function getAttributionRepoRoot(): string { |
| 37 | const cwd = getCwd() |
| 38 | return findGitRoot(cwd) ?? getOriginalCwd() |
| 39 | } |
| 40 | |
| 41 | // Cache for repo classification result. Primed once per process. |
| 42 | // 'internal' = remote matches INTERNAL_MODEL_REPOS allowlist |
no test coverage detected