]> Kevux Git Server - rit/commit
t5400: explicitly use "gc" strategy
authorPatrick Steinhardt <ps@pks.im>
Tue, 24 Feb 2026 08:45:48 +0000 (09:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Feb 2026 15:33:19 +0000 (07:33 -0800)
commit0894704369579cb99bba21e88e9ec7ff3852deee
tree6509ac0171aeee11868326be4e49b444845f255d
parentea7d894f449d7f212ddf8a12a67f78467581b23f
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>
t/t5400-send-pack.sh