Re: git-clone causes out of memory
- From
- Constantine <hi-angel@yandex.ru>
- Date
- Oct 13, 2017, 12:12 UTC
- Message-ID
- <2f9b8856-dacc-768d-32c2-985f5f145ba7@yandex.ru>
- In-Reply-To
- <xmqqr2u7uuc8.fsf@gitster.mtv.corp.google.com>
On 13.10.2017 15:04, Junio C Hamano wrote:
Show 7 quoted lines
> Christian Couder <christian.couder@gmail.com> writes: > >> Yeah, but perhaps Git could be smarter when rev-listing too and avoid >> processing files or directories it has already seen? > > Aren't you suggesting to optimize for a wrong case? >
Anything that is possible with a software should be considered as a possible usecase. It's in fact a DoS attack. Imagine there's a server that using git to process something, and now there's a way to knock down this server. It's also bad from a promotional stand point.