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

Function emptyrepo

test/conftest.py:56–62  ·  view source on GitHub ↗
(
    barerepo: Repository, tmp_path: Path
)

Source from the content-addressed store, hash-verified

54
55@pytest.fixture
56def emptyrepo(
57 barerepo: Repository, tmp_path: Path
58) -> Generator[Repository, None, None]:
59 with utils.TemporaryRepository('emptyrepo.zip', tmp_path) as path:
60 repo = pygit2.Repository(path)
61 repo.remotes.create('origin', barerepo.path)
62 yield repo
63
64
65@pytest.fixture

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…