diff options
author | Taylor Blau <me@ttaylorr.com> | 2022-09-19 21:55:56 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-09-21 10:21:47 -0700 |
commit | b62ad5681f7ff08065d172f541ab2578d7b38e18 (patch) | |
tree | 402b3c4c6c614e232bf7d1137dd49e6b14e4f4b3 /midx.c | |
parent | 0a8e5614924abaac17008aea3cef2ee8fa25f26a (diff) | |
download | git-b62ad5681f7ff08065d172f541ab2578d7b38e18.tar.gz |
midx.c: avoid cruft packs with non-zero `repack --batch-size`
Apply similar treatment with respect to cruft packs as in a few commits
ago to `repack` with a non-zero `--batch-size`.
Since the case of a non-zero `--batch-size` is handled separately (in
`fill_included_packs_batch()` instead of `fill_included_packs_all()`), a
separate fix must be applied for this case.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'midx.c')
-rw-r--r-- | midx.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1946,6 +1946,8 @@ static int fill_included_packs_batch(struct repository *r, continue; if (!pack_kept_objects && p->pack_keep) continue; + if (p->is_cruft) + continue; if (open_pack_index(p) || !p->num_objects) continue; |