MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / _init_repo

Function _init_repo

tests/unit/cli/test_hook_manager.py:17–20  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

15
16
17def _init_repo(path):
18 path.mkdir(parents=True)
19 subprocess.run(["git", "init"], cwd=path, check=True, stdout=subprocess.DEVNULL)
20 return path
21
22
23def test_find_git_repository_from_nested_directory(tmp_path):

Calls 1

runMethod · 0.45

Tested by

no test coverage detected