cache-tree: create/update cache-tree on checkout
[gitweb.git] / builtin / index-pack.c
index 54b089542b91fe786f4f75fe363cd1d5fb1635ff..18f57de58b02de33909a40ea9720e6602cc9dcb5 100644 (file)
@@ -554,7 +554,7 @@ static void *unpack_data(struct object_entry *obj,
 
        do {
                ssize_t n = (len < 64*1024) ? len : 64*1024;
-               n = pread(get_thread_data()->pack_fd, inbuf, n, from);
+               n = xpread(get_thread_data()->pack_fd, inbuf, n, from);
                if (n < 0)
                        die_errno(_("cannot pread pack file"));
                if (!n)