Re: [PATCH v3] quickfetch(): Prevent overflow of the rev-list command line
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Jul 9, 2009, 14:21 UTC
- Message-ID
- <4A55FCD5.2020908@viscovery.net>
- In-Reply-To
- <200907091552.44545.johan@herland.net>
Johan Herland schrieb:
Show 5 quoted lines
> On Thursday 09 July 2009, Johannes Sixt wrote: >> Shouldn't you reset signal(SIGPIPE) to its previous value? > > Done (provided that the sigchain_push/pop infrastructure works the way > I expect).
I'm not sure, either. Peff?
Show 19 quoted lines
> +test_expect_success 'quickfetch should handle ~1000 refs (on Windows)' ' > + > + git gc && > + head=$(git rev-parse HEAD) && > + branchprefix="$head refs/heads/branch" && > + for i in 0 1 2 3 4 5 6 7 8 9; do > + for j in 0 1 2 3 4 5 6 7 8 9; do > + for k in 0 1 2 3 4 5 6 7 8 9; do > + echo "$branchprefix$i$j$k" >> .git/packed-refs > + done > + done > + done && > + ( > + cd cloned && > + git fetch && > + git fetch > + ) > + > +'
This test fails on Windows without the code change and passes with the code change. So, it's a good test.
But actually I meant you to make a test that triggers the SIGPIPE that would kill git-fetch if it were not ignored. This one doesn't trigger it, either.
-- Hannes