| 180 | } |
| 181 | |
| 182 | static void send_client_data(int fd, const char *data, ssize_t sz, |
| 183 | int use_sideband) |
| 184 | { |
| 185 | if (use_sideband) { |
| 186 | send_sideband(1, fd, data, sz, use_sideband); |
| 187 | return; |
| 188 | } |
| 189 | if (fd == 3) |
| 190 | /* emergency quit */ |
| 191 | fd = 2; |
| 192 | if (fd == 2) { |
| 193 | /* XXX: are we happy to lose stuff here? */ |
| 194 | xwrite(fd, data, sz); |
| 195 | return; |
| 196 | } |
| 197 | write_or_die(fd, data, sz); |
| 198 | } |
| 199 | |
| 200 | static int write_one_shallow(const struct commit_graft *graft, void *cb_data) |
| 201 | { |
no test coverage detected