{"thread":{"id":"6400","subject":"sha-1 mismatch using command line sha1sum","startedAt":"2007-01-16T13:42:50Z","lastAt":"2007-01-16T14:18:54Z","messageCount":4,"participants":["Andy Parkins","Baz","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"31818","messageId":"200701161342.56431.andyparkins@gmail.com","threadId":"6400","inReplyTo":null,"subject":"sha-1 mismatch using command line sha1sum","fromName":"Andy Parkins","fromEmail":"andyparkins@gmail.com","sentAt":"2007-01-16T13:42:50Z","receivedAt":"2007-01-16T13:42:50Z","isPatch":false,"sender":{"key":"andyparkins@gmail.com","avatar":null},"body":"Hello,\n\nI came across this message:\n\nhttp://www.gelato.unsw.edu.au/archives/git/0504/0212.html\n\nSo I thought, \"hey that's interesting, I'll try it\".  I was surprised to find \nthis:\n\n$ sha1sum .git/objects/f4/b6c6b90fdce12d69e4ad80ff6082405ec8cfb8 \nac4c6f1d36d6e0341486789b32f86ae6f506df35  .git/objects/f4/b6c6b90fdce12d69e4ad80ff6082405ec8cfb8\n\nThis is in the latest git repository.\n\nIs this correct, or should we all begin screaming and crying that our \nrepositories are woefully corrupt? :-)\n\n\n\nAndy\n-- \nDr Andy Parkins, M Eng (hons), MIEE\nandyparkins@gmail.com\n"},{"id":"31819","messageId":"2faad3050701160550g2d3fdf56p64b8ae1ea4d4197e@mail.gmail.com","threadId":"6400","inReplyTo":"200701161342.56431.andyparkins@gmail.com","subject":"Re: sha-1 mismatch using command line sha1sum","fromName":"Baz","fromEmail":"brian.ewins@gmail.com","sentAt":"2007-01-16T13:50:30Z","receivedAt":"2007-01-16T13:50:30Z","isPatch":false,"sender":{"key":"brian.ewins@gmail.com","avatar":"https://gravatar.com/avatar/9ac03d89105e50a7151e695a1b4b1228151064ec3ac380a73b74ab397796baf7?d=mp&s=160"},"body":"On 16/01/07, Andy Parkins <andyparkins@gmail.com> wrote:\n> Hello,\n>\n> I came across this message:\n>\n> http://www.gelato.unsw.edu.au/archives/git/0504/0212.html\n>\n> So I thought, \"hey that's interesting, I'll try it\".  I was surprised to find\n> this:\n>\n> $ sha1sum .git/objects/f4/b6c6b90fdce12d69e4ad80ff6082405ec8cfb8\n> ac4c6f1d36d6e0341486789b32f86ae6f506df35  .git/objects/f4/b6c6b90fdce12d69e4ad80ff6082405ec8cfb8\n>\n> This is in the latest git repository.\n>\n> Is this correct, or should we all begin screaming and crying that our\n> repositories are woefully corrupt? :-)\n\nThat changed some time ago. From the git(7) manpage:\n\n\"It's worth noting that the SHA1 hash that is used to name the object\nis the hash of the original data plus this header, so sha1sum file\ndoes not match the object name for file. (Historical note: in the dawn\nof the age of git the hash was the sha1 of the compressed object.)\"\n\nCheers,\nBaz\n"},{"id":"31821","messageId":"eoimnv$g0c$1@sea.gmane.org","threadId":"6400","inReplyTo":"200701161342.56431.andyparkins@gmail.com","subject":"Re: sha-1 mismatch using command line sha1sum","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-01-16T14:17:00Z","receivedAt":"2007-01-16T14:17:00Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Andy Parkins wrote:\n\n> Hello,\n> \n> I came across this message:\n> \n> http://www.gelato.unsw.edu.au/archives/git/0504/0212.html\n> \n> So I thought, \"hey that's interesting, I'll try it\".  I was surprised to find \n> this:\n> \n> $ sha1sum .git/objects/f4/b6c6b90fdce12d69e4ad80ff6082405ec8cfb8 \n> ac4c6f1d36d6e0341486789b32f86ae6f506df35  .git/objects/f4/b6c6b90fdce12d69e4ad80ff6082405ec8cfb8\n> \n> This is in the latest git repository.\n> \n> Is this correct, or should we all begin screaming and crying that our \n> repositories are woefully corrupt? :-)\n\nsha-1 sum of _uncompressed_ object.\n\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"},{"id":"31822","messageId":"200701161418.55941.andyparkins@gmail.com","threadId":"6400","inReplyTo":"2faad3050701160550g2d3fdf56p64b8ae1ea4d4197e@mail.gmail.com","subject":"Re: sha-1 mismatch using command line sha1sum","fromName":"Andy Parkins","fromEmail":"andyparkins@gmail.com","sentAt":"2007-01-16T14:18:54Z","receivedAt":"2007-01-16T14:18:54Z","isPatch":false,"sender":{"key":"andyparkins@gmail.com","avatar":null},"body":"On Tuesday 2007 January 16 13:50, Baz wrote:\n\n> That changed some time ago. From the git(7) manpage:\n\nOh good.  I have to admit, I started sweating a bit at the thought that the \nhashes might be wrong :-)  I should know better; git is infalliable :-)\n\n\nAndy\n-- \nDr Andy Parkins, M Eng (hons), MIEE\nandyparkins@gmail.com\n"}]}