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

Function make_repo

testing/fixtures.py:45–50  ·  view source on GitHub ↗
(tempdir_factory, repo_source)

Source from the content-addressed store, hash-verified

43
44
45def make_repo(tempdir_factory, repo_source):
46 path = git_dir(tempdir_factory)
47 copy_tree_to_path(get_resource_path(repo_source), path)
48 cmd_output('git', 'add', '.', cwd=path)
49 git_commit(msg=make_repo.__name__, cwd=path)
50 return path
51
52
53@contextlib.contextmanager

Calls 5

get_resource_pathFunction · 0.90
cmd_outputFunction · 0.90
git_commitFunction · 0.90
git_dirFunction · 0.85
copy_tree_to_pathFunction · 0.85