| 253 | } |
| 254 | |
| 255 | static void send_request(struct fetch_pack_args *args, |
| 256 | int fd, struct strbuf *buf) |
| 257 | { |
| 258 | if (args->stateless_rpc) { |
| 259 | send_sideband(fd, -1, buf->buf, buf->len, LARGE_PACKET_MAX); |
| 260 | packet_flush(fd); |
| 261 | } else { |
| 262 | if (write_in_full(fd, buf->buf, buf->len) < 0) |
| 263 | die_errno(_("unable to write to remote")); |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | static void insert_one_alternate_object(struct fetch_negotiator *negotiator, |
| 268 | struct object *obj) |
no test coverage detected