1

I am using Git 2.1.4 on Cygwin. It works fine except when I try to push to a distant Windows drive. I get random write errors like this:

remote: error: failed to read delta-pack base object 6774b61156e70ecdf97f3b0d3e0491a8ebd35f67
error: unpack failed: unpack-objects abnormal exit

If I try to push 3 or 4 times in a row, it eventually works. If I push the exact same repository using MSYS Git, it works just fine.

Is this a known bug in Git and/or Cygwin? Do you know if there is any workaround?

Rudloff
  • 119
  • 7

2 Answers2

2

We have similar issues here. When you try enough times, it always succeeds in the end. I created a script git-repeat-push:

#! /bin/bash
until git push "$@" ; do : ; done

The script can run forever if you try to push a rebased branch without force, so don't do that.

Update: The problems are gone after cygwin's recent git updates.

choroba
  • 216,930
  • 22
  • 195
  • 267
-1

I had this problem too in the past where I tried to solve:

error: unpack failed: unpack-objects abnormal exit
To git://git.mysrv.net/Answer_Bot-repo.git;
 ! [remote rejected] HEAD -> master (n/a (unpacker error))
error: failed to push some refs to 'git://git.mysrv.net/Answer_Bot-repo.git'

A main reason of this happening is because the local repository may be corrupted or the disk space in the server hosting stash could be full.

Perhaps take a look at this link for more details: Git push failed - unpack-objects abnormal exit.

Community
  • 1
  • 1
Answer_Bot
  • 35
  • 3