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

Function test_fetch_depth_one

test/test_remote.py:290–294  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

288
289@utils.requires_network
290def test_fetch_depth_one(testrepo: Repository) -> None:
291 remote = testrepo.remotes[0]
292 stats = remote.fetch(REMOTE_FETCHTEST_FETCHSPECS, depth=1)
293 assert stats.indexed_objects == REMOTE_REPO_FETCH_HEAD_COMMIT_OBJECTS
294 assert stats.received_objects == REMOTE_REPO_FETCH_HEAD_COMMIT_OBJECTS
295
296
297def test_transfer_progress(emptyrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…