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

Function test_checkout_alternative_dir

test/test_repository.py:260–266  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

258
259
260def test_checkout_alternative_dir(testrepo: Repository) -> None:
261 ref_i18n = testrepo.lookup_reference('refs/heads/i18n')
262 extra_dir = Path(testrepo.workdir) / 'extra-dir'
263 extra_dir.mkdir()
264 assert len(list(extra_dir.iterdir())) == 0
265 testrepo.checkout(ref_i18n, directory=extra_dir)
266 assert not len(list(extra_dir.iterdir())) == 0
267
268
269def test_checkout_paths(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

checkoutMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…