Skip to content

Commit 38ae87c

Browse files
pks-tgitster
authored andcommitted
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>
1 parent 94f5d9f commit 38ae87c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

t/t6500-gc.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ test_expect_success 'setup' '
1111
# behavior, make sure we always pack everything to one pack by
1212
# default
1313
git config gc.bigPackThreshold 2g &&
14+
git config set --global maintenance.strategy gc &&
1415
test_oid_init
1516
'
1617

0 commit comments

Comments
 (0)