]> Kevux Git Server - rit/commit
t6500: explicitly use "gc" strategy
authorPatrick Steinhardt <ps@pks.im>
Tue, 24 Feb 2026 08:45:50 +0000 (09:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Feb 2026 15:33:20 +0000 (07:33 -0800)
commit38ae87c1ba6b070a4ab69d9ae08c39bcbfcba00c
tree6e6bd0bf8f077bf441e332313325f0b6860438d0
parent94f5d9f09e3c25a2c1efafcab7697a3387c80b4b
t6500: explicitly use "gc" strategy

The test in t6500 explicitly wants to exercise git-gc(1) and is thus
highly specific to the actual on-disk state of the repository and
specifically of the object database. An upcoming change modifies the
default maintenance strategy to be the "geometric" strategy though,
which breaks a couple of assumptions.

One fix would arguably be to disable auto-maintenance altogether, as we
do want to explicitly verify git-gc(1) anyway. But as the whole test
suite is about git-gc(1) in the first place it feels more sensible to
configure the default maintenance strategy to be "gc".

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6500-gc.sh