pack-bitmap.c: avoid exposing absolute paths
commit8ddc06631b184e6f43051f7ea8ac9bbc86817127
authorTeng Long <dyroneteng@gmail.com>
Thu, 10 Nov 2022 07:10:12 +0000 (10 15:10 +0800)
committerTaylor Blau <me@ttaylorr.com>
Mon, 14 Nov 2022 22:21:16 +0000 (14 17:21 -0500)
tree8add201b98a4cb933e8e21e19e2f4829e4bc32ef
parent2aa84d5f3ea1966a81477ad31bee0136e39d3917
pack-bitmap.c: avoid exposing absolute paths

In "open_midx_bitmap_1()" and "open_pack_bitmap_1()", when we find that
there are multiple bitmaps, we will only open the first one and then
leave warnings about the remaining pack information, the information
will contain the absolute path of the repository, for example in a
alternates usage scenario. So let's hide this kind of potentially
sensitive information in this commit.

Found-by: XingXin <moweng.xx@antgroup.com>
Signed-off-by: Teng Long <dyroneteng@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
pack-bitmap.c
t/t5310-pack-bitmaps.sh