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

Function _run_commit_msg

tests/unit/test_git_hooks.py:39–47  ·  view source on GitHub ↗
(subject: str, tmp_path: Path)

Source from the content-addressed store, hash-verified

37
38
39def _run_commit_msg(subject: str, tmp_path: Path) -> subprocess.CompletedProcess:
40 msg_file = tmp_path / "COMMIT_EDITMSG"
41 msg_file.write_text(subject + "\n", encoding="utf-8")
42 return subprocess.run(
43 ["bash", str(_COMMIT_MSG_HOOK), str(msg_file)],
44 capture_output=True,
45 text=True,
46 check=False,
47 )
48
49
50# ----- commit-msg -----------------------------------------------------------

Calls 2

strFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected