From: Johannes Sixt Date: Mon, 19 Aug 2013 08:20:20 GMT Subject: Re: [PATCH v2] compat: Fix read() of 2GB and more on Mac OS X Message-ID: <5211D544.8080706@kdbg.org> In-Reply-To: <1376894300-28929-1-git-send-email-prohaska@zib.de> Am 19.08.2013 08:38, schrieb Steffen Prohaska: > +test_expect_success EXPENSIVE 'filter large file' ' > + git config filter.largefile.smudge cat && > + git config filter.largefile.clean cat && > + for i in $(test_seq 1 2048); do printf "%1048576d" 1; done >2GB && Shouldn't you count to 2049 to get a file that is over 2GB? > + echo "2GB filter=largefile" >.gitattributes && > + git add 2GB 2>err && > + ! test -s err && > + rm -f 2GB && > + git checkout -- 2GB 2>err && > + ! test -s err > +' -- Hannes