MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / _run_git

Function _run_git

lib/devtools/src/crewai_devtools/docs_check.py:149–157  ·  view source on GitHub ↗

Run a git command and return stdout.

(args: list[str])

Source from the content-addressed store, hash-verified

147
148
149def _run_git(args: list[str]) -> str:
150 """Run a git command and return stdout."""
151 result = subprocess.run( # noqa: S603
152 ["git", *args], # noqa: S607
153 capture_output=True,
154 text=True,
155 check=True,
156 )
157 return result.stdout.strip()
158
159
160def _get_diff(base: str) -> str:

Callers 1

_get_diffFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected