MCPcopy Create free account
hub / github.com/libgit2/pygit2 / clonerepo

Function clonerepo

test/test_remote_prune.py:37–45  ·  view source on GitHub ↗
(
    testrepo: Repository, tmp_path: Path
)

Source from the content-addressed store, hash-verified

35
36@pytest.fixture
37def clonerepo(
38 testrepo: Repository, tmp_path: Path
39) -> Generator[Repository, None, None]:
40 cloned_repo_path = tmp_path / 'test_remote_prune'
41
42 pygit2.clone_repository(testrepo.workdir, cloned_repo_path)
43 clonerepo = pygit2.Repository(cloned_repo_path)
44 testrepo.branches.delete('i18n')
45 yield clonerepo
46
47
48def test_fetch_remote_default(clonerepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…