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

Function get_content_length

http-backend.c:366–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366static ssize_t get_content_length(void)
367{
368 ssize_t val = -1;
369 const char *str = getenv("CONTENT_LENGTH");
370
371 if (str && *str && !git_parse_ssize_t(str, &val))
372 die("failed to parse CONTENT_LENGTH: %s", str);
373 return val;
374}
375
376static ssize_t read_request(int fd, unsigned char **out, ssize_t req_len)
377{

Callers 1

run_serviceFunction · 0.85

Calls 2

git_parse_ssize_tFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected