From: Junio C Hamano Date: Fri, 14 Aug 2020 20:25:02 GMT Subject: Re: [PATCH 0/2] Documentation updates for SHA-256 Message-ID: In-Reply-To: <20200814202031.GM8085@camp.crustytoothpaste.net> "brian m. carlson" writes: > On 2020-08-14 at 04:47:19, Junio C Hamano wrote: >> Derrick Stolee writes: >> >> > Is that really a concern? Maybe, but also Git will never move data like >> > that. >> >> I would say that we can safely say that this year ;-) as dumb HTTP >> would be mostly dead. > > We do fetch the refs first for dumb HTTP so last I checked, we correctly > detected this case and failed. I'd personally be happy to let the > DAV-based protocol die, but there are folks who like it. I didn't mean DAV. The oldest dumb HTTP code grabs all packfiles listed in objects/info/packs and there is nothing to prevent folks from running the current client to fetch from SHA-256 repository into a SHA-1 repository. The resulting packfiles that do not identify with the version number what hash it uses would be very hard to use.