From a1886ad5454d035c903f0bc9f01eb4365125a75f Mon Sep 17 00:00:00 2001 From: garrytan Date: Thu, 1 Oct 2026 19:48:43 +0000 Subject: [PATCH] test(coverage-audit fixture): disable git auto maintenance so cleanup is not racing a detached git writer --- test/fixtures/coverage-audit-fixture.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/fixtures/coverage-audit-fixture.ts b/test/fixtures/coverage-audit-fixture.ts index 8a7adcc3d..5b0977102 100644 --- a/test/fixtures/coverage-audit-fixture.ts +++ b/test/fixtures/coverage-audit-fixture.ts @@ -68,6 +68,10 @@ describe('processPayment', () => { run('git', ['init', '-b', 'main']); run('git', ['config', 'user.email', 'test@test.com']); run('git', ['config', 'user.name', 'Test']); + // Git 2.47+ runs auto maintenance detached after commit; it can still be + // writing .git/objects when the caller removes this fixture. + run('git', ['config', 'gc.auto', '0']); + run('git', ['config', 'maintenance.auto', 'false']); run('git', ['add', '.']); run('git', ['commit', '-m', 'initial commit']);