Skip to content

Instantly share code, notes, and snippets.

@d3vAdv3ntur3s
Created October 28, 2021 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d3vAdv3ntur3s/a3e907ef33e773db42865191e1c89f28 to your computer and use it in GitHub Desktop.
Save d3vAdv3ntur3s/a3e907ef33e773db42865191e1c89f28 to your computer and use it in GitHub Desktop.
Git early EOF (Error decoding the received TLS packet, index-pack failed) Issue

Git early EOF (Error decoding the received TLS packet, index-pack failed) Issue

git clone https://github.com/d3vadv3ntur3s/some-cool-repo.git
Cloning into 'some-cool-repo'...

remote: Enumerating objects: 145563, done.
remote: Counting objects: 100% (6172/6172), done.
remote: Compressing objects: 100% (2684/2684), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): Error decoding the received TLS packet.
fatal: the remote end hung up unexpectedly
fatal: early EOFs:  50% (72782/145563), 112.51 MiB | 3.39 MiB/s
fatal: index-pack failed

Step 1. Turn off compression

git config --global core.compression 0

Step 2. Partial cone latest commit on default branch

git clone --depth 1 https://github.com/d3vadv3ntur3s/some-cool-repo.git

Step 3. Retrieve the rest

git fetch --unshallow

Step 4. Pull down refs

git pull --all

Step 5 configure remote branches and pull down everything

git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git config --get remote.origin.fetch
git pull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment