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

Function test_clone_shallow_repository

test/test_repository.py:741–746  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

739
740@utils.requires_network
741def test_clone_shallow_repository(tmp_path: Path) -> None:
742 # shallow cloning currently only works with remote repositories
743 url = 'https://github.com/libgit2/TestGitRepository'
744 repo = clone_repository(url, tmp_path / 'clone-shallow', depth=1)
745 assert not repo.is_empty
746 assert repo.is_shallow
747
748
749def test_clone_repository_and_remote_callbacks(

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…