(args: Sequence[str], cwd: Path)
| 389 | |
| 390 | |
| 391 | def _run_git(args: Sequence[str], cwd: Path) -> tuple[int, str, str]: |
| 392 | p = subprocess.run( |
| 393 | ["git", *args], |
| 394 | cwd=str(cwd), |
| 395 | capture_output=True, |
| 396 | text=True, |
| 397 | ) |
| 398 | return p.returncode, p.stdout.strip(), p.stderr.strip() |
| 399 | |
| 400 | |
| 401 | def find_repo_root(start: Path) -> Path: |
no test coverage detected