aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-02-24 09:45:48 +0100
committerJunio C Hamano <gitster@pobox.com>2026-02-24 07:33:19 -0800
commit0894704369579cb99bba21e88e9ec7ff3852deee (patch)
tree6509ac0171aeee11868326be4e49b444845f255d
parentea7d894f449d7f212ddf8a12a67f78467581b23f (diff)
downloadgit-0894704369579cb99bba21e88e9ec7ff3852deee.tar.xz
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>
-rwxr-xr-xt/t5400-send-pack.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5400-send-pack.sh b/t/t5400-send-pack.sh
index 83b42ff073..b32a0a6aa7 100755
--- a/t/t5400-send-pack.sh
+++ b/t/t5400-send-pack.sh
@@ -187,6 +187,7 @@ test_expect_success 'receive-pack runs auto-gc in remote repo' '
cd child &&
git config gc.autopacklimit 1 &&
git config gc.autodetach false &&
+ git config maintenance.strategy gc &&
git branch test_auto_gc &&
# And create a file that follows the temporary object naming
# convention for the auto-gc to remove