diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-02-24 09:45:49 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-24 07:33:19 -0800 |
| commit | 94f5d9f09e3c25a2c1efafcab7697a3387c80b4b (patch) | |
| tree | b45d6d210f09feab8f5f530992ee58c81433bb13 | |
| parent | 0894704369579cb99bba21e88e9ec7ff3852deee (diff) | |
| download | git-94f5d9f09e3c25a2c1efafcab7697a3387c80b4b.tar.xz | |
t5510: explicitly use "gc" strategy
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>
| -rwxr-xr-x | t/t5510-fetch.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index c69afb5a60..5dcb4b51a4 100755 --- a/t/t5510-fetch.sh +++ b/t/t5510-fetch.sh @@ -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 |
