Merge branch 'tb/repack-cleanup'
commitc6a5e1a22e0fcafbcc67a2b098cc13150f8aaf4a
authorJunio C Hamano <gitster@pobox.com>
Tue, 18 Jul 2023 14:28:53 +0000 (18 07:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Jul 2023 14:28:53 +0000 (18 07:28 -0700)
treebc61eabe60b46679c47ad57253ae9fd4ca02ff36
parent6016ee0a7130d3ad656def12d724d1525d39af9b
parentdef390d5939d97f4bd642684e0554885e716370e
Merge branch 'tb/repack-cleanup'

The recent change to "git repack" made it react less nicely when a
leftover .idx file that no longer has the corresponding .pack file
in the repository, which has been corrected.

* tb/repack-cleanup:
  builtin/repack.c: avoid dir traversal in `collect_pack_filenames()`
  builtin/repack.c: only repack `.pack`s that exist
builtin/repack.c