Re: [PATCH 0/2] Documentation updates for SHA-256
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 14, 2020, 20:25 UTC
- Message-ID
- <xmqqtux5ug9t.fsf@gitster.c.googlers.com>
- In-Reply-To
- <20200814202031.GM8085@camp.crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
Show 12 quoted lines
> On 2020-08-14 at 04:47:19, Junio C Hamano wrote: >> Derrick Stolee <stolee@gmail.com> 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.