]> asedeno.scripts.mit.edu Git - git.git/blobdiff - index-pack.c
Replace calls to strbuf_init(&foo, 0) with STRBUF_INIT initializer
[git.git] / index-pack.c
index 73860bf3da062d283c266f6b83fdf3f613af26e7..d3a4d31b4e92d69eb32d1a18ebb7be1f7470d1d1 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;
 }