MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / subprocess_env

Function subprocess_env

tests/test_detect_breaking_changes.py:38–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def 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
48def git(repo: Path, *args: str) -> None:

Callers 2

gitFunction · 0.85
reported_namesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected