MCPcopy Create free account
hub / github.com/git/git / copy_request

Function copy_request

http-backend.c:447–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445}
446
447static void copy_request(const char *prog_name, int out, ssize_t req_len)
448{
449 unsigned char *buf;
450 ssize_t n = read_request(0, &buf, req_len);
451 if (n < 0)
452 die_errno("error reading request body");
453 write_to_child(out, buf, n, prog_name);
454 close(out);
455 free(buf);
456}
457
458static void pipe_fixed_length(const char *prog_name, int out, size_t req_len)
459{

Callers 1

run_serviceFunction · 0.85

Calls 3

die_errnoFunction · 0.85
write_to_childFunction · 0.85
read_requestFunction · 0.70

Tested by

no test coverage detected