Skip to content

Commit cddd4a7

Browse files
pks-tgitster
authored andcommitted
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>
1 parent e151f07 commit cddd4a7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

t/t5510-fetch.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,7 @@ test_expect_success 'fetching with auto-gc does not lock up' '
13211321
git config fetch.unpackLimit 1 &&
13221322
git config gc.autoPackLimit 1 &&
13231323
git config gc.autoDetach false &&
1324+
git config maintenance.strategy gc &&
13241325
GIT_ASK_YESNO="$TRASH_DIRECTORY/askyesno" git fetch --verbose >fetch.out 2>&1 &&
13251326
test_grep "Auto packing the repository" fetch.out &&
13261327
! grep "Should I try again" fetch.out

0 commit comments

Comments
 (0)