Skip to content

Commit e151f07

Browse files
pks-tgitster
authored andcommitted
t5400: explicitly use "gc" strategy
In t5400 we verify that git-receive-pack(1) runs automated repository maintenance in the remote repository. The check is performed indirectly by observing an effect that git-gc(1) would have, namely to prune a temporary object from the object database. In a subsequent commit we're about to switch to the "geometric" strategy by default though, and here we stop observing that effect. Adapt the test to explicitly use the "gc" strategy to prepare for that upcoming change. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent c9114c9 commit e151f07

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

t/t5400-send-pack.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ test_expect_success 'receive-pack runs auto-gc in remote repo' '
187187
cd child &&
188188
git config gc.autopacklimit 1 &&
189189
git config gc.autodetach false &&
190+
git config maintenance.strategy gc &&
190191
git branch test_auto_gc &&
191192
# And create a file that follows the temporary object naming
192193
# convention for the auto-gc to remove

0 commit comments

Comments
 (0)