(tmp_path: Path)
| 739 | |
| 740 | @utils.requires_network |
| 741 | def 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 | |
| 749 | def test_clone_repository_and_remote_callbacks( |
nothing calls this directly
no test coverage detected
searching dependent graphs…