]> git.ipfire.org Git - thirdparty/git.git/commit
t7900: prepare for switch of the default strategy
authorPatrick Steinhardt <ps@pks.im>
Tue, 24 Feb 2026 08:45:51 +0000 (09:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Feb 2026 15:33:20 +0000 (07:33 -0800)
commitd2fbe9af79148a93bbcc2fa540e21e9fe3594b65
tree13957526aa79ab3ade9c95380aead641f2c34944
parent38ae87c1ba6b070a4ab69d9ae08c39bcbfcba00c
t7900: prepare for switch of the default strategy

The t7900 test suite is exercising git-maintenance(1) and is thus of
course heavily reliant on the exact maintenance strategy. This reliance
comes in two flavors:

  - One test explicitly wants to verify that git-gc(1) is run as part of
    `git maintenance run`. This test is adapted by explicitly picking the
    "gc" strategy.

  - The other tests assume a specific shape of the object database,
    which is dependent on whether or not we run auto-maintenance before
    we come to the actual subject under test. These tests are adapted by
    disabling auto-maintenance.

With these changes t7900 passes with both "gc" and "geometric" default
strategies.

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