From: Junio C Hamano Date: Sat, 09 Feb 2008 05:57:27 GMT Subject: Re: [PATCH] Introduce the config variable pack.packSizeLimit Message-ID: <7vbq6qfz94.fsf@gitster.siamese.dyndns.org> In-Reply-To: <7vfxw2g0gb.fsf@gitster.siamese.dyndns.org> Junio C Hamano writes: > Johannes Schindelin writes: > >> +test_expect_success \ >> + 'honor pack.packSizeLimit' \ >> + 'git config pack.packSizeLimit 200 && >> + packname_4=$(git pack-objects test-4 > + test 3 = $(ls test-4-*.pack | wc -l)' >> + > > Where does "3" come from, and what could break it? How about doing it like this, instead? diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index 4f350dd..3eea478 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -268,4 +268,12 @@ test_expect_success \ 'make sure index-pack detects the SHA1 collision' \ '! git-index-pack -o bad.idx test-3.pack' +test_expect_success 'honor pack.packSizeLimit' ' + limit=200 && + git config pack.packSizeLimit $limit && + packname_4=$(git pack-objects test-4