Skip to content

Commit f656e01

Browse files
codexByron
authored andcommitted
Pack reconstructed dependency fixtures
Creating the historical smmap tag leaves a loose, read-only Git object in the reconstructed repository. Local clones may hardlink loose objects, and Python 3.7 on Windows cannot remove those files during temporary-directory cleanup. Run Git garbage collection after constructing each fixture so its generated refs and objects use normal packed repository storage before tests clone it.
1 parent bf9aea6 commit f656e01

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/lib/helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ def setUpClass(cls):
411411
repo.create_head("master", repo.commit(rev), force=True).checkout()
412412
if name == "smmap":
413413
repo.create_tag("v0.8.1", ref="master~10", message="Test fixture tag", force=True)
414+
repo.git.gc()
414415
repo.close()
415416
cls._dependency_repo_dirs[name] = path
416417

0 commit comments

Comments
 (0)