MCPcopy Create free account
hub / github.com/BerriAI/litellm / _commit_all

Function _commit_all

tests/unit/test_pre_commit_lint.py:155–161  ·  view source on GitHub ↗
(repo: Path, message: str)

Source from the content-addressed store, hash-verified

153
154
155def _commit_all(repo: Path, message: str) -> None:
156 subprocess.run(["git", "add", "."], cwd=repo, check=True)
157 subprocess.run(
158 ["git", "-c", "user.email=t@t", "-c", "user.name=t", "commit", "-qm", message],
159 cwd=repo,
160 check=True,
161 )
162
163
164def _set_base_ref(repo: Path, branch: str = "release_branch") -> None:

Calls 1

runMethod · 0.45

Tested by

no test coverage detected