t/t5304-prune.sh: prepare for `gc --cruft` by default
commitb934207a223a846e98c693c4c6a9ca32bf995688
authorTaylor Blau <me@ttaylorr.com>
Tue, 18 Apr 2023 20:40:41 +0000 (18 16:40 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Apr 2023 21:56:47 +0000 (18 14:56 -0700)
treecdd560136a43a1cba31b4e6a42501154fbd644f3
parent05b9013b7181e0c842517ce76aeab25a56670dc0
t/t5304-prune.sh: prepare for `gc --cruft` by default

Many of the tests in t5304 run `git gc`, and rely on its behavior that
unreachable-but-recent objects are written out loose. This is sensible,
since t5304 deals specifically with this kind of pruning.

If left unattended, however, this test would break when the default
behavior of a bare "git gc" is adjusted to generate a cruft pack by
default.

Ensure that these tests continue to work as-is (and continue to provide
coverage of loose object pruning) by passing `--no-cruft` explicitly.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5304-prune.sh