write_in_full: really write in full or return error on disk full.
[gitweb.git] / index-pack.c
index e9a53032226edd5663458031734c135afb5db0ef..8d10d6ba243ee99d698ddbb7651a10422cc5c9ba 100644 (file)
@@ -814,7 +814,7 @@ static void final(const char *final_pack_name, const char *curr_pack_name,
                char buf[48];
                int len = snprintf(buf, sizeof(buf), "%s\t%s\n",
                                   report, sha1_to_hex(sha1));
-               xwrite(1, buf, len);
+               write_in_full(1, buf, len);
 
                /*
                 * Let's just mimic git-unpack-objects here and write