From 5e6c61272023750253da2ef9d45dbd2c2bb7b469 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Tue, 24 Feb 2026 09:45:46 +0100 Subject: t: disable maintenance where we verify object database structure We have a couple of tests that explicitly verify the structure of the object database. Naturally, this structure is dependent on whether or not we run repository maintenance: if it decides to optimize the object database the expected structure is likely to not materialize. Explicitly disable auto-maintenance in such tests so that we are not dependent on decisions made by our maintenance. Signed-off-by: Patrick Steinhardt Signed-off-by: Junio C Hamano --- t/t5331-pack-objects-stdin.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 't/t5331-pack-objects-stdin.sh') diff --git a/t/t5331-pack-objects-stdin.sh b/t/t5331-pack-objects-stdin.sh index cd949025b9..b03f6be164 100755 --- a/t/t5331-pack-objects-stdin.sh +++ b/t/t5331-pack-objects-stdin.sh @@ -14,6 +14,7 @@ packed_objects () { test_expect_success 'setup for --stdin-packs tests' ' git init stdin-packs && + git -C stdin-packs config set maintenance.auto false && ( cd stdin-packs && @@ -255,6 +256,7 @@ test_expect_success '--stdin-packs=follow walks into unknown packs' ' git init repo && ( cd repo && + git config set maintenance.auto false && for c in A B C D do -- cgit v1.3-6-g1900