diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-04-30 14:49:41 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-04-30 14:49:42 -0700 |
| commit | 55e5548a0f62b2b9a4e22d585320d23c06eeee65 (patch) | |
| tree | ddedabccfc6a5f9b90b1ed424cf9cb339f3b5dd6 /t | |
| parent | c9f43012a10c4c4b26b8966fcf8497d8db0a0c06 (diff) | |
| parent | 93e2ae1c95e2685f51fb6320508bbde20fa7949f (diff) | |
| download | git-55e5548a0f62b2b9a4e22d585320d23c06eeee65.tar.xz | |
Merge branch 'xx/disable-replace-when-building-midx'
The procedure to build multi-pack-index got confused by the
replace-refs mechanism, which has been corrected by disabling the
latter.
* xx/disable-replace-when-building-midx:
midx: disable replace objects
Diffstat (limited to 't')
| -rwxr-xr-x | t/t5326-multi-pack-bitmaps.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/t/t5326-multi-pack-bitmaps.sh b/t/t5326-multi-pack-bitmaps.sh index 5d7d321840..cc7220b6c0 100755 --- a/t/t5326-multi-pack-bitmaps.sh +++ b/t/t5326-multi-pack-bitmaps.sh @@ -434,6 +434,27 @@ test_expect_success 'tagged commits are selected for bitmapping' ' ) ' +test_expect_success 'do not follow replace objects for MIDX bitmap' ' + rm -fr repo && + git init repo && + test_when_finished "rm -fr repo" && + ( + cd repo && + + test_commit A && + test_commit B && + git checkout --orphan=orphan A && + test_commit orphan && + + git replace A HEAD && + git repack -ad --write-midx --write-bitmap-index && + + # generating reachability bitmaps with replace refs + # enabled will result in broken clones + git clone --no-local --bare . clone.git + ) +' + corrupt_file () { chmod a+w "$1" && printf "bogus" | dd of="$1" bs=1 seek="12" conv=notrunc |
