MCPcopy
hub / github.com/anthropics/financial-services / git

Function git

scripts/version_bump.py:38–45  ·  view source on GitHub ↗

Run a git command, returning stdout (stripped). Raises on failure.

(*args: str)

Source from the content-addressed store, hash-verified

36
37
38def git(*args: str) -> str:
39 """Run a git command, returning stdout (stripped). Raises on failure."""
40 return subprocess.run(
41 ["git", "-C", str(ROOT), *args],
42 capture_output=True,
43 text=True,
44 check=True,
45 ).stdout.strip()
46
47
48def git_ok(*args: str) -> str | None:

Callers 2

git_okFunction · 0.85
cmd_applyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected