aggravating edge case: git commit has ID 0000000000000000000000000000000000000000
-
Show this thread
-
(is it possible for SHA-1 to return zero? this value is used in the git protocol to indicate the absence of a commit ID)
5 replies 0 retweets 5 likesShow this thread -
according to stack overflow: - this is not a programming question - no, because of some maths - yes, but it's 2^-160 unlikely
2 replies 0 retweets 9 likesShow this thread -
Replying to @mountain_ghosts
is this any more of a problem than the possibility of two commits having the same id?
2 replies 0 retweets 0 likes -
Replying to @bcjbcjbcj
yes because the git protocol uses this ID as a null value
1 reply 0 retweets 1 like
If you had a hash collision between two commits, everything would also be broken. Not sure if one would be more broken or not, but we're still talking about something so incredibly unlikely that we can effectively ignore it.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.