From: Baz <brian.ewins@gmail.com>
To: "Andy Parkins" <andyparkins@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: sha-1 mismatch using command line sha1sum
Date: Tue, 16 Jan 2007 13:50:30 +0000 [thread overview]
Message-ID: <2faad3050701160550g2d3fdf56p64b8ae1ea4d4197e@mail.gmail.com> (raw)
In-Reply-To: <200701161342.56431.andyparkins@gmail.com>
On 16/01/07, Andy Parkins <andyparkins@gmail.com> wrote:
> Hello,
>
> I came across this message:
>
> http://www.gelato.unsw.edu.au/archives/git/0504/0212.html
>
> So I thought, "hey that's interesting, I'll try it". I was surprised to find
> this:
>
> $ sha1sum .git/objects/f4/b6c6b90fdce12d69e4ad80ff6082405ec8cfb8
> ac4c6f1d36d6e0341486789b32f86ae6f506df35 .git/objects/f4/b6c6b90fdce12d69e4ad80ff6082405ec8cfb8
>
> This is in the latest git repository.
>
> Is this correct, or should we all begin screaming and crying that our
> repositories are woefully corrupt? :-)
That changed some time ago. From the git(7) manpage:
"It's worth noting that the SHA1 hash that is used to name the object
is the hash of the original data plus this header, so sha1sum file
does not match the object name for file. (Historical note: in the dawn
of the age of git the hash was the sha1 of the compressed object.)"
Cheers,
Baz
next prev parent reply other threads:[~2007-01-16 13:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-16 13:42 sha-1 mismatch using command line sha1sum Andy Parkins
2007-01-16 13:50 ` Baz [this message]
2007-01-16 14:18 ` Andy Parkins
2007-01-16 14:17 ` Jakub Narebski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2faad3050701160550g2d3fdf56p64b8ae1ea4d4197e@mail.gmail.com \
--to=brian.ewins@gmail.com \
--cc=andyparkins@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox