Skip to content
  • Jeff King's avatar
    pack-objects: turn off bitmaps when we split packs · 21134714
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    If a pack.packSizeLimit is set, we may split the pack data
    across multiple packfiles. This means we cannot generate
    .bitmap files, as they require that all of the reachable
    objects are in the same pack. We check that condition when
    we are generating the list of objects to pack (and disable
    bitmaps if we are not packing everything), but we forgot to
    update it when we notice that we needed to split (which
    doesn't happen until the actual write phase).
    
    The resulting bitmaps are quite bogus (they mention entries
    that do not exist in the pack!) and can cause a fetch or
    push to send insufficient objects.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    21134714