# Git (SHA1) problem on Mac

3 messages from 2008-04-10 to 2008-04-10. Participants: Mark Dodwell.
Thread: https://gitlist.dev/t/13057

## Mark Dodwell, 2008-04-10 21:12

Subject: Git (SHA1) problem on Mac
Message-ID: <FAA4D842-DCB2-45B4-AB40-6F7D1F0A0320@mkdynamic.co.uk>
URL: https://gitlist.dev/e/FAA4D842-DCB2-45B4-AB40-6F7D1F0A0320%40mkdynamic.co.uk

```
Hi,

I've got a problem with Git on my Mac, and I've exhausted Google and  
#git (irc), perhaps somebody can help?

I'm using git version X installed from source, I'm on Mac OS X 10.4.11.

Here's the problem I'm seeing:

[imac:~]$   mkdir git-test
[imac:~]$   cd git-test
[imac:~/git-test]$   git init
Initialized empty Git repository in .git/
[imac:~/git-test]$   touch README
[imac:~/git-test]$   git add README
[imac:~/git-test]$   git commit -m 'first commit'
Created initial commit b6e6cb6: first commit
  0 files changed, 0 insertions(+), 0 deletions(-)
  create mode 100644 README
[imac:~/git-test]$   git remote add origin git@github.com:mkdynamic/ 
git-test.git
[imac:~/git-test]$   git push origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 215 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
fatal: final sha1 did not match
error: unpack failed: unpacker exited with error code
To git@github.com:mkdynamic/git-test.git
  ! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'git@github.com:mkdynamic/git- 
test.git'

I can confirm that it is not an issue with the remote repo, as I  
similar 'final sha1 did not match' errors when i try to do local  
fetches.

Any clues/advice on what to do next?

Many thanks,

~ Mark

```

## Mark Dodwell, 2008-04-10 21:17

Subject: Re: Git (SHA1) problem on Mac
Message-ID: <E20ABEF3-4FE8-4E24-A7C6-368432D2A963@mkdynamic.co.uk>
URL: https://gitlist.dev/e/E20ABEF3-4FE8-4E24-A7C6-368432D2A963%40mkdynamic.co.uk
In-Reply-To: <FAA4D842-DCB2-45B4-AB40-6F7D1F0A0320@mkdynamic.co.uk>

```
On 10 Apr 2008, at 22:12, Mark Dodwell wrote:

>
> I'm using git version X installed from source, I'm on Mac OS X  
> 10.4.11.
>

Sorry I'm using git version 1.5.4.5 (forgot to paste that over the X!).

~ Mark

```

## Mark Dodwell, 2008-04-10 23:58

Subject: Re: Git (SHA1) problem on Mac
Message-ID: <D23E2A3B-EBC4-4983-93F1-D08C7916DEF6@mkdynamic.co.uk>
URL: https://gitlist.dev/e/D23E2A3B-EBC4-4983-93F1-D08C7916DEF6%40mkdynamic.co.uk
In-Reply-To: <905315640804101617v25e70d2aw983718cb41c441c9@mail.gmail.com>

```
On 11 Apr 2008, at 00:17, tarmigan wrote:
> On Thu, Apr 10, 2008 at 2:12 PM, Mark Dodwell <web@mkdynamic.co.uk>  
> wrote:
>> Hi,
>>
>>  I've got a problem with Git on my Mac, and I've exhausted Google  
>> and #git
>> (irc), perhaps somebody can help?
>>
>>  I'm using git version X installed from source, I'm on Mac OS X  
>> 10.4.11.
>>
>>  Here's the problem I'm seeing:
>>
>>  [imac:~]$   mkdir git-test
>>  [imac:~]$   cd git-test
>>  [imac:~/git-test]$   git init
>>  Initialized empty Git repository in .git/
>>  [imac:~/git-test]$   touch README
>>  [imac:~/git-test]$   git add README
>>  [imac:~/git-test]$   git commit -m 'first commit'
>>  Created initial commit b6e6cb6: first commit
>>   0 files changed, 0 insertions(+), 0 deletions(-)
>>   create mode 100644 README
>>  [imac:~/git-test]$   git remote add origin
>> git@github.com:mkdynamic/git-test.git
>>  [imac:~/git-test]$   git push origin master
>>  Counting objects: 3, done.
>>  Writing objects: 100% (3/3), 215 bytes, done.
>>  Total 3 (delta 0), reused 0 (delta 0)
>>  fatal: final sha1 did not match
>>  error: unpack failed: unpacker exited with error code
>
> I think I had the same problem yesterday.  Do you have fink installed?
>  Specifically the openssl packages?  Uninstalling those through fink
> and recompiling git did the trick for me, though I'm not sure what the
> real problem was.
>
> You should also be able to define NO_FINK as well (see the beginning
> of the Makefile).
>
> Good luck,
> Tarmigan

Thanks so much, that did the trick. I had to remove the openssl  
packages through fink and then recompile git. Now it works!

Thanks,

~ Mark

```
