aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Lederhofer <matled@gmx.net>2006-07-13 13:07:59 +0200
committerJunio C Hamano <junkio@cox.net>2006-07-13 21:50:22 -0700
commit5f490ce03c16411b737374c12ed377c74af1ca9d (patch)
tree9498e267876f782ebb4df8c76948ba2e14299550
parent258e93a155f88fd7385e4d1e26f287044ba973e9 (diff)
downloadgit-5f490ce03c16411b737374c12ed377c74af1ca9d.tar.gz
git-5f490ce03c16411b737374c12ed377c74af1ca9d.tar.xz
upload-pack: ignore write errors to stderr
Signed-off-by: Matthias Lederhofer <matled@gmx.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--upload-pack.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/upload-pack.c b/upload-pack.c
index b18eb9ba0..94aa0dab4 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -51,6 +51,10 @@ static ssize_t send_client_data(int fd, const char *data, ssize_t sz)
if (fd == 3)
/* emergency quit */
fd = 2;
+ if (fd == 2) {
+ xwrite(fd, data, sz);
+ return sz;
+ }
return safe_write(fd, data, sz);
}
p = data;