MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / push_example

Function push_example

tests/commands/hook_impl_test.py:257–266  ·  view source on GitHub ↗
(tempdir_factory)

Source from the content-addressed store, hash-verified

255
256@pytest.fixture
257def push_example(tempdir_factory):
258 src = git_dir(tempdir_factory)
259 git_commit(cwd=src)
260 src_head = git.head_rev(src)
261
262 clone = tempdir_factory.get()
263 cmd_output('git', 'clone', src, clone)
264 git_commit(cwd=clone)
265 clone_head = git.head_rev(clone)
266 return (src, src_head, clone, clone_head)
267
268
269def test_run_ns_pre_push_updating_branch(push_example):

Callers

nothing calls this directly

Calls 4

git_dirFunction · 0.90
git_commitFunction · 0.90
cmd_outputFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected