Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
p5551: add a script to test fetch pack-dir rescans
[gitweb.git]
/
streaming.c
diff --git
a/streaming.c
b/streaming.c
index 9afa66b8be6c3b5481e4542c033bfebdb2abbfda..c8b85e4498eaedee4142cbe543174ae639cae8e8 100644
(file)
--- a/
streaming.c
+++ b/
streaming.c
@@
-539,7
+539,7
@@
int stream_blob_to_fd(int fd, const struct object_id *oid, struct stream_filter
kept = 0;
wrote = write_in_full(fd, buf, readlen);
- if (wrote
!= readlen
)
+ if (wrote
< 0
)
goto close_and_exit;
}
if (kept && (lseek(fd, kept - 1, SEEK_CUR) == (off_t) -1 ||