]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5546-receive-limits.sh
receive-pack: allow a maximum input size to be specified
authorJeff King <peff@peff.net>
Wed, 24 Aug 2016 18:41:57 +0000 (20:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Aug 2016 19:31:05 +0000 (12:31 -0700)
commitc08db5a2d0d5c0cf371168e621d5929005b1abf8
tree9c2524e1e142c08bc399b6ede6a6d72f7485d950
parent5ad218673328262839542b841b505c78132857e7
receive-pack: allow a maximum input size to be specified

Receive-pack feeds its input to either index-pack or
unpack-objects, which will happily accept as many bytes as
a sender is willing to provide. Let's allow an arbitrary
cutoff point where we will stop writing bytes to disk.

Cleaning up what has already been written to disk is a
related problem that is not addressed by this patch.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/git-receive-pack.txt
builtin/receive-pack.c
t/t5546-receive-limits.sh [new file with mode: 0755]