diff options
-rw-r--r-- | upload-pack.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/upload-pack.c b/upload-pack.c index b18eb9ba0d..94aa0dab48 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; |