]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5510: explicitly use "gc" strategy
authorPatrick Steinhardt <ps@pks.im>
Tue, 24 Feb 2026 08:45:49 +0000 (09:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Feb 2026 15:33:19 +0000 (07:33 -0800)
One of the tests in t5510 wants to verify that auto-gc does not lock up
when fetching into a repository. Adapt it to explicitly pick the "gc"
strategy for auto-maintenance.

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

index c69afb5a609343c0b5357cad6056ce7ffacd261b..5dcb4b51a47d8868b65cffd76e59f948bd49f21b 100755 (executable)
@@ -1321,6 +1321,7 @@ test_expect_success 'fetching with auto-gc does not lock up' '
                git config fetch.unpackLimit 1 &&
                git config gc.autoPackLimit 1 &&
                git config gc.autoDetach false &&
+               git config maintenance.strategy gc &&
                GIT_ASK_YESNO="$TRASH_DIRECTORY/askyesno" git fetch --verbose >fetch.out 2>&1 &&
                test_grep "Auto packing the repository" fetch.out &&
                ! grep "Should I try again" fetch.out