diff: --indent-heuristic is no longer experimental
[gitweb.git] / fast-import.c
index 365d3191aa1abfb42b4d0da6973612126cc74f3b..32ac5323f6310e40595df23b77698dea1622f9fa 100644 (file)
@@ -2951,7 +2951,7 @@ static void parse_reset_branch(const char *arg)
 
 static void cat_blob_write(const char *buf, unsigned long size)
 {
-       if (write_in_full(cat_blob_fd, buf, size) != size)
+       if (write_in_full(cat_blob_fd, buf, size) < 0)
                die_errno("Write to frontend failed");
 }