()
| 72 | def git(*args): |
| 73 | return subprocess.check_output(['git', '-C', tmp, *args]).decode().strip() |
| 74 | def commit(): |
| 75 | git('add', '-A') |
| 76 | git('-c', 'user.name=Test', '-c', 'user.email=test@example.invalid', 'commit', '-qm', 'fixture') |
| 77 | return git('rev-parse', 'HEAD') |
| 78 | git('init', '-q') |
| 79 | root = Path(tmp) |
| 80 | (root / 'web').mkdir() |