t5400: explicitly use "gc" strategy
In t5400 we verify that git-receive-pack(1) runs automated repository maintenance in the remote repository. The check is performed indirectly by observing an effect that git-gc(1) would have, namely to prune a temporary object from the object database. In a subsequent commit we're about to switch to the "geometric" strategy by default though, and here we stop observing that effect. Adapt the test to explicitly use the "gc" strategy to prepare for that upcoming change. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Patrick Steinhardt committed
Feb 24, 2026 at 09:45 UTC
0894704369579cb99bba21e88e9ec7ff3852deee
1 file changed
+1
t/t5400-send-pack.sh
+1
@@ -187,6 +187,7 @@ test_expect_success 'receive-pack runs auto-gc in remote repo' '
187
cd child &&
188
git config gc.autopacklimit 1 &&
189
git config gc.autodetach false &&
190
+ git config maintenance.strategy gc &&
191
git branch test_auto_gc &&
192
# And create a file that follows the temporary object naming
193
# convention for the auto-gc to remove