Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git push error: unpack failed: index-pack abnormal exit

Tags:

git

I'm able to pull but Unable to git push

$ git push -u origin master
Counting objects: 2031, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1367/1367), done.
remote: fatal: early EOF
Writing objects: 100% (2031/2031), 34.33 MiB | 100.00 KiB/s, done.
Total 2031 (delta 659), reused 1056 (delta 324)
error: unpack failed: index-pack abnormal exit
To https://*********.git
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'https://*********

I have tried :

  • git repack
  • git git config --global core.compression 0

I have already referred to the following links but nothing is working for me

Git push failed - unpack-objects abnormal exit

fatal: early EOF fatal: index-pack failed

Git push fails with "fatal: early EOF" when PUSHing but only on one file

Other git users are able to push to the same repo, usually this problem occurs when in commit large no of new files are added

None of the above solutions have helped and I'm stuck.

Thanks

EDIT

Also tried

[core] 
packedGitLimit = 512m 
packedGitWindowSize = 512m 
[pack] 
deltaCacheSize = 2047m 
packSizeLimit = 2047m 
windowMemory = 2047m
like image 907
Rachita Nanda Avatar asked Sep 07 '16 06:09

Rachita Nanda


1 Answers

Try using the --no-thin option of git push.

$ git push --no-thin

From https://git-scm.com/docs/git-push:

--[no-]thin

These options are passed to git-send-pack[1]. A thin transfer significantly reduces the amount of sent data when the sender and receiver share many of the same objects in common. The default is --thin.

Our team has struggled with this same issue and has tried all of the fixes/workarounds mentioned in the OP links, with various success. What works for some didn't work for others, nor would it work for the same person a few months later. So far, the --no-thin option has been working well.

like image 110
Phil Brown Avatar answered Sep 16 '22 12:09

Phil Brown