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 vote

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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

543 views 1 2
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