rebase-i-p: only list commits that require rewriting in todo
[gitweb.git] / index-pack.c
index c45ae20e8ffacefa43c5d0ab9daf0ff6ef181d4a..2a366206a4e830d0bb66d6ac708cd512a94d6d37 100644 (file)
@@ -707,6 +707,7 @@ static struct object_entry *append_obj_to_pack(struct sha1file *f,
        obj[1].idx.offset = obj[0].idx.offset + n;
        obj[1].idx.offset += write_compressed(f, buf, size);
        obj[0].idx.crc32 = crc32_end(f);
+       sha1flush(f);
        hashcpy(obj->idx.sha1, sha1);
        return obj;
 }