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

Function setup_second_repo

test/test_packbuilder.py:84–89  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

82
83
84def setup_second_repo(tmp_path: Path) -> Repository:
85 # helper method to set up a second repo for comparison
86 tmp_path_2 = tmp_path / 'test_repo2'
87 with utils.TemporaryRepository('testrepo.zip', tmp_path_2) as path:
88 testrepo = pygit2.Repository(path)
89 return testrepo
90
91
92def confirm_same_repo_after_packing(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…