summaryrefslogtreecommitdiffstats
path: root/tar-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-21 00:01:00 -0800
committerJunio C Hamano <junkio@cox.net>2005-12-21 00:01:00 -0800
commitc2f3bf071ee90b01f2d629921bb04c4f798f02fa (patch)
tree08ffe5b40e062d596deee47f3869278f4661a858 /tar-tree.c
parentGIT 0.99.9n aka 1.0rc6 (diff)
parentMake "git-send-pack" less verbose by default (diff)
downloadgit-1.0.0.tar.gz
git-1.0.0.zip
GIT 1.0.0v1.0.0
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'tar-tree.c')
-rw-r--r--tar-tree.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tar-tree.c b/tar-tree.c
index bacb23ae63..96bd1438d9 100644
--- a/tar-tree.c
+++ b/tar-tree.c
@@ -34,10 +34,8 @@ struct path_prefix {
static void reliable_write(void *buf, unsigned long size)
{
while (size > 0) {
- long ret = write(1, buf, size);
+ long ret = xwrite(1, buf, size);
if (ret < 0) {
- if (errno == EAGAIN)
- continue;
if (errno == EPIPE)
exit(0);
die("git-tar-tree: %s", strerror(errno));