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

Function _git

lib/cli/tests/test_git.py:160–167  ·  view source on GitHub ↗
(cwd, *args: str)

Source from the content-addressed store, hash-verified

158
159
160def _git(cwd, *args: str) -> str:
161 return subprocess.run(
162 ["git", "-c", "user.name=t", "-c", "user.email=t@example.com", *args],
163 cwd=cwd,
164 capture_output=True,
165 text=True,
166 check=True,
167 ).stdout.strip()
168
169
170def test_head_commit_is_none_before_the_first_commit(tmp_path):

Calls 1

runMethod · 0.45

Tested by

no test coverage detected