logoalt Hacker News

Buttons840 • today at 12:55 AM • 1 reply • view on HN

I was thinking the same. Can't the git CLI see a hash and say "well, I don't see any matching SHA-256 hash, but let me check the Legacy SHA1 hashes I have stored", and still resolve an old SHA1 hash to the correct commit?


Replies

hedora • today at 3:41 AM

It could even do that + barf if it saw two objects with matching SHA-1 but mismatched SHA-256!