]> git.ipfire.org Git - thirdparty/git.git/blobdiff - pack-bitmap-write.c
pack-bitmap: make bitmap header handling hash agnostic
[thirdparty/git.git] / pack-bitmap-write.c
index 5566e94abed9f0838d4c1d999ee8e90159000256..c82fb01fd758ae328b1b9eb05623b7263a43d5fe 100644 (file)
@@ -535,7 +535,7 @@ void bitmap_writer_finish(struct pack_idx_entry **index,
        header.entry_count = htonl(writer.selected_nr);
        hashcpy(header.checksum, writer.pack_checksum);
 
-       hashwrite(f, &header, sizeof(header));
+       hashwrite(f, &header, sizeof(header) - GIT_MAX_RAWSZ + the_hash_algo->rawsz);
        dump_bitmap(f, writer.commits);
        dump_bitmap(f, writer.trees);
        dump_bitmap(f, writer.blobs);