'
test_expect_success 'add more commits (as loose objects)' '
+ test_config maintenance.auto false &&
test_commit six &&
test_commit seven &&
# repeatedly-modified file to generate the delta chain).
test_expect_success 'create series of packs' '
+ test_config maintenance.auto false &&
test-tool genrandom foo 4096 >content &&
prev= &&
for i in $(test_seq 1 10)
git init repo &&
(
cd repo &&
+ git config set maintenance.auto false &&
for i in 1 2 3 4 5
do
test_expect_success 'setup test_repository' '
rm -rf * .git &&
git init &&
- git config pack.writeBitmapLookupTable '"$writeLookupTable"'
+ git config pack.writeBitmapLookupTable '"$writeLookupTable"' &&
+ git config maintenance.auto false
'
midx_bitmap_core
test_expect_success 'setup bitmap config' '
rm -rf * .git &&
git init &&
- git config pack.writeBitmapLookupTable '"$writeLookupTable"'
+ git config pack.writeBitmapLookupTable '"$writeLookupTable"' &&
+ git config maintenance.auto false
'
midx_bitmap_core rev
test_expect_success 'setup for --stdin-packs tests' '
git init stdin-packs &&
+ git -C stdin-packs config set maintenance.auto false &&
(
cd stdin-packs &&
git init repo &&
(
cd repo &&
+ git config set maintenance.auto false &&
for c in A B C D
do
test_expect_success 'preferred pack is reused for single-pack reuse' '
test_config pack.allowPackReuse single &&
+ git config set maintenance.auto false &&
for i in A B
do
test_expect_success 'convert non-incremental MIDX to incremental' '
test_commit base &&
+ git config set maintenance.auto false &&
git repack -ad &&
git multi-pack-index write &&
'
test_expect_success 'clone shallow' '
- git clone --no-single-branch --depth 2 "file://$(pwd)/." shallow
+ git clone --no-single-branch --depth 2 "file://$(pwd)/." shallow &&
+ git -C shallow config set maintenance.auto false
'
test_expect_success 'clone shallow depth count' '
git clone --filter=blob:none "file://$(pwd)/srv.bare" pack-test &&
ls pack-test/.git/objects/pack/*pack >pack-list &&
test_line_count = 2 pack-list &&
+ test_config -C pack-test maintenance.auto false &&
for i in A B C
do
test_commit -C src $i &&
cd keep-pack &&
# avoid producing different packs due to delta/base choices
git config pack.window 0 &&
+ git config maintenance.auto false &&
P1=$(commit_and_pack 1) &&
P2=$(commit_and_pack 2) &&
P3=$(commit_and_pack 3) &&
# Avoid producing different packs due to delta/base choices
git config pack.window 0 &&
+ git config maintenance.auto false &&
P1=$(commit_and_pack 1) &&
P2=$(commit_and_pack 2) &&
P3=$(commit_and_pack 3) &&
(
cd midx &&
git config core.multiPackIndex true &&
+ git config maintenance.auto false &&
test_commit base
)