From cd1383f0a8db799b023afd436c9e6c96fa44e9be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20Gu=C3=A9ret?= Date: Tue, 9 Jun 2026 19:34:55 +0200 Subject: [PATCH] fix(bench): avoid flaky thin-pack fixture push git push --all to a freshly initialized bare repo intermittently failed with "Could not read " / "eof before pack header" because git sends a thin pack whose base objects are absent from the empty remote. Pass --no-thin to always send a complete pack. --- crates/git-server-bench/src/fixtures.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/git-server-bench/src/fixtures.rs b/crates/git-server-bench/src/fixtures.rs index d6a4363..27868ce 100644 --- a/crates/git-server-bench/src/fixtures.rs +++ b/crates/git-server-bench/src/fixtures.rs @@ -98,8 +98,8 @@ fn create_fixture( } // Push all refs - run_git(&["push", "origin", "--all"], Some(&work_dir)); - run_git(&["push", "origin", "--tags"], Some(&work_dir)); + run_git(&["push", "--no-thin", "origin", "--all"], Some(&work_dir)); + run_git(&["push", "--no-thin", "origin", "--tags"], Some(&work_dir)); Fixture { _dir: dir,