pack-bitmap: make bitmap header handling hash agnostic
[gitweb.git] / pack-bitmap.c
index 4695aaf6b4eda41ec2479a326ddbe7a0bed065ab..b53f37243c363d42778dea561d91db9cdf1e35bf 100644 (file)
@@ -163,7 +163,7 @@ static int load_bitmap_header(struct bitmap_index *index)
        }
 
        index->entry_count = ntohl(header->entry_count);
-       index->map_pos += sizeof(*header);
+       index->map_pos += sizeof(*header) - GIT_MAX_RAWSZ + the_hash_algo->rawsz;
        return 0;
 }