On git clone receiving "Cache entry has null sha1 value"

When I attempt to do a git clone on my git repository I get the following error:

error: cache entry has null sha1: .chef/credentials
fatal: unable to write new index file

My clone fails and the local directory is empty. When I navigate to the source -> .chef directory on bitbucket UI I see the following:

credentials → 000000000000 [000000000000]

I think this is an artifact of a symbolic link, but somehow this was successfully checked in and has created some sort of bad index sha value.

Any way to fix this?

3 answers

1 accepted

This widget could not be displayed.

I think this has something to do with symlink preservation where they are commited and pushed on a linux filesystem, then checking it out on a windows FS and commit/push causes something weird to happen.

Unfortunately, I had to move past this error by reverting to a past commit and resetting. So, the credentials dir is no longer there. So, I am closing this issue out.

This widget could not be displayed.

Happy to look into this more closely, but I'd need to know which repo this is. If you're not comfortable troubleshooting this publicly, please email support@bitbucket.org and refer to this page.

This widget could not be displayed.

I'm getting a similar error.

error: cache entry has null sha1: FileName

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,609 views 9 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you