remote: error: inflate: data stream error (unknown compression method)

After some computer "Blue Screen Of death" episodes, I cannot "Push" commits to a Dropbox origin bare repository. The dialog is:

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=manager-st push -v --tags --set-upstream origin Bulk_extract:Bulk_extract
Pushing to D:/Meir/Dropbox/git_repositories/ML.git
sh: warning: setlocale: LC_ALL: cannot change locale (en): No such file or directory
remote: error: inflate: data stream error (unknown compression method)        
remote: fatal: failed to read object 2e7c1be969812b240f6dfa7ca9506de4d30d4a04: Invalid argument        
error: inflate: data stream error (unknown compression method)
fatal: failed to read object 2e7c1be969812b240f6dfa7ca9506de4d30d4a04: Invalid argument
To D:/Meir/Dropbox/git_repositories/ML.git
 ! [remote rejected] Bulk_extract -> Bulk_extract (missing necessary objects)
error: failed to push some refs to 'D:/Meir/Dropbox/git_repositories/ML.git'

Completed with errors, see above.

Help? Anybody...?

Regards
Meir

1 answer

0 votes

Hi

it sounds like your Git repository has been corrupted. It is probably worht running git fsck, https://git-scm.com/docs/git-fsck, or possibly re-cloning

Running git fsck --full  yiels this:

Dad@Meir_2 MINGW64 /d/Meir/Dropbox/git_repositories/ML.git (BARE:master)
$ git fsck --full
notice: HEAD points to an unborn branch (master)
error: inflate: data stream error (unknown compression method)
error: unable to unpack 2e7c1be969812b240f6dfa7ca9506de4d30d4a04 header
error: inflate: data stream error (unknown compression method)
fatal: loose object 2e7c1be969812b240f6dfa7ca9506de4d30d4a04 (stored in ./objects/2e/7c1be969812b240f6dfa7ca9506de4d30d4a04) is corrupt

Any hope???

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

256 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot