path: root/help.c
diff options
authorMax Kirillov <>2018-07-27 03:48:59 (GMT)
committerJunio C Hamano <>2018-07-27 17:47:52 (GMT)
commit6c213e863aeb0af078bf82deefb22da20427c2ab (patch)
treee57aa5d2f715e46fc3605bf659322a1ed747e195 /help.c
parentc79edf73f4b018310428632887f9ce2ce32d839a (diff)
http-backend: respect CONTENT_LENGTH for receive-pack
Push passes to another commands, as described in As it gets complicated to correctly track the data length, instead transfer the data through parent process and cut the pipe as the specified length is reached. Do it only when CONTENT_LENGTH is set, otherwise pass the input directly to the forked commands. Add tests for cases: * CONTENT_LENGTH is set, script's stdin has more data, with all combinations of variations: fetch or push, plain or compressed body, correct or truncated input. * CONTENT_LENGTH is specified to a value which does not fit into ssize_t. Helped-by: Junio C Hamano <> Signed-off-by: Max Kirillov <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'help.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/help.c b/help.c
index dd35fcc..e469f57 100644
--- a/help.c
+++ b/help.c
@@ -609,6 +609,7 @@ int cmd_version(int argc, const char **argv, const char *prefix)
printf("no commit associated with this build\n");
printf("sizeof-long: %d\n", (int)sizeof(long));
+ printf("sizeof-size_t: %d\n", (int)sizeof(size_t));
/* NEEDSWORK: also save and output GIT-BUILD_OPTIONS? */
return 0;