Re: [PATCH v3 3/3] receive-pack: allow a maximum input size to be specified

2016-08-24 Thread Jeff King
On Wed, Aug 24, 2016 at 08:41:57PM +0200, Christian Couder wrote: > +test_pack_input_limit () { > + case "$1" in > + index) unpack_limit=1 ;; > + unpack) unpack_limit=1 ;; > + esac Nice, this is pretty self-explanatory. > + test_expect_success 'prepare destination reposit

[PATCH v3 3/3] receive-pack: allow a maximum input size to be specified

2016-08-24 Thread Christian Couder
From: Jeff King 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 r