()
| 36 | |
| 37 | |
| 38 | def subprocess_env() -> dict[str, str]: |
| 39 | # inside a git hook, GIT_DIR would send these commits to the real repository; |
| 40 | # FORCE_COLOR and TTY_COMPATIBLE would add color codes to the script's output |
| 41 | return { |
| 42 | name: value |
| 43 | for name, value in os.environ.items() |
| 44 | if not name.startswith("GIT_") and name not in ("FORCE_COLOR", "TTY_COMPATIBLE") |
| 45 | } |
| 46 | |
| 47 | |
| 48 | def git(repo: Path, *args: str) -> None: |
no outgoing calls
no test coverage detected