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

0 votes
Answer accepted

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.

0 votes

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.

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 Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

265 views 0 12
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