t5319-multi-pack-index.sh: test batch size zero
authorDerrick Stolee <dstolee@microsoft.com>
Mon, 10 Jun 2019 23:35:29 +0000 (16:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Jun 2019 17:34:41 +0000 (10:34 -0700)
commitb526d8cbbb8740faa10411caa757c6586395fcab
tree08923af329ca10a7318797179d0911b890053abc
parent10bfa3f7f58406a5799267e4844fcd3f9ec16097
t5319-multi-pack-index.sh: test batch size zero

The 'git multi-pack-index repack' command can take a batch size of
zero, which creates a new pack-file containing all objects in the
multi-pack-index. The first 'repack' command will create one new
pack-file, and an 'expire' command after that will delete the old
pack-files, as they no longer contain any referenced objects in the
multi-pack-index.

We must remove the .keep file that was added in the previous test
in order to expire that pack-file.

Also test that a 'repack' will do nothing if there is only one
pack-file.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5319-multi-pack-index.sh