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

Function test_clone_repository

test/test_repository.py:724–731  ·  view source on GitHub ↗
(barerepo: Repository, tmp_path: Path)

Source from the content-addressed store, hash-verified

722
723
724def test_clone_repository(barerepo: Repository, tmp_path: Path) -> None:
725 assert barerepo.is_bare
726 repo = clone_repository(Path(barerepo.path), tmp_path / 'clonepath')
727 assert not repo.is_empty
728 assert not repo.is_bare
729 repo = clone_repository(str(barerepo.path), str(tmp_path / 'clonestr'))
730 assert not repo.is_empty
731 assert not repo.is_bare
732
733
734def test_clone_bare_repository(barerepo: Repository, tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 1

clone_repositoryFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…