Git error unpacking missing missing blob on git review on gerrit

Hey, I keep getting these errors by accident with some of the work that I do. Usually I will edit the repo after checking the code, and then run the following commands.

git add .
git commit --amend
git review

then I sometimes get this error

error: unpack failed: error Missing blob c7eb8a2bcbe57f7f134819fbe6e2975b04b2e548
fatal: Unpack error, check server log
To ssh://a.b@address.com:29418/wns/chef/splunk-hop
 ! [remote rejected] HEAD -> refs/publish/develop (n/a (unpacker error))
error: failed to push some refs to 'ssh://a.b@address.com:29418/wns/chef/splunk-hop'

Any ideas? Am I doing something or is it the server I click on it?

+4
source share
3 answers

I had this problem today and tried all the suggestions. Finally, the solution was very simple:

  • Switch to another branch (for example, develop).
  • Pull from a remote repository
  • Go back to your new branch and click.

With any luck, he will work now.

+6
source

git fetch . , GC , .

+2

See Tardyp here:
git unpack error when clicking on gerrit

If this does not match your case, the repository is probably corrupted.

0
source

All Articles