MCPcopy
hub / github.com/pre-commit/pre-commit / git_dir

Function git_dir

testing/fixtures.py:39–42  ·  view source on GitHub ↗
(tempdir_factory)

Source from the content-addressed store, hash-verified

37
38
39def git_dir(tempdir_factory):
40 path = tempdir_factory.get()
41 cmd_output('git', '-c', 'init.defaultBranch=master', 'init', path)
42 return path
43
44
45def make_repo(tempdir_factory, repo_source):

Calls 2

cmd_outputFunction · 0.90
getMethod · 0.45