()
| 28 | } |
| 29 | |
| 30 | export function readRepoRoot(): string { |
| 31 | try { |
| 32 | return execFileSync("git", ["rev-parse", "--show-toplevel"], { |
| 33 | encoding: "utf8", |
| 34 | stdio: ["ignore", "pipe", "ignore"], |
| 35 | }).trim(); |
| 36 | } catch { |
| 37 | throw new NotInGitRepoError(); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | function readOriginUrl(repoRoot: string): string | null { |
| 42 | try { |
no outgoing calls
no test coverage detected