(cwd, *args: str)
| 158 | |
| 159 | |
| 160 | def _git(cwd, *args: str) -> str: |
| 161 | return subprocess.run( |
| 162 | ["git", "-c", "user.name=t", "-c", "user.email=t@example.com", *args], |
| 163 | cwd=cwd, |
| 164 | capture_output=True, |
| 165 | text=True, |
| 166 | check=True, |
| 167 | ).stdout.strip() |
| 168 | |
| 169 | |
| 170 | def test_head_commit_is_none_before_the_first_commit(tmp_path): |
no test coverage detected