(cwd: string, args: string[])
| 409 | } |
| 410 | |
| 411 | function runGit(cwd: string, args: string[]) { |
| 412 | try { |
| 413 | return execFileSync("git", ["-C", cwd, ...args], { |
| 414 | encoding: "utf8", |
| 415 | stdio: ["ignore", "pipe", "ignore"], |
| 416 | }).trim() |
| 417 | } catch { |
| 418 | return undefined |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | function normalizeGitHubRemote(remote: string) { |
| 423 | const trimmed = remote.trim().replace(/\.git$/, "") |
no outgoing calls
no test coverage detected