Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bitbucket cannot clone repository "fatal: early EOF fatal: index-pack failed"

I am trying to clone my repository using ssh from bitbucket but whenever i clone the repository i get:

Connection to bitbucket.org closed by remote host.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

During cloning repositories of small size it gets cloned but when cloning bigger size repositories gives the error. I also have tried this method:

fatal: early EOF fatal: index-pack failed

but no luck. Could any one help with the issue?

Note:

Http cloning works fine, but that doesn't work in my scenario. I need to clone using only ssh.

like image 988
PaladiN Avatar asked Aug 26 '16 07:08

PaladiN


People also ask

How do I clone a bitbucket repository?

Clone a Bitbucket repositoryClick + in the global sidebar on the left, and under Get to work select Clone this repository. Select HTTPS from the menu in the upper-right (unless you've already set up your SSH keys). Copy the clone command.

What is git fetch -- Unshallow?

Git provides a fetch --unshallow command which solves the problem, so we just need to run git fetch --unshallow in the repository before running r10k. However, some of our (older) GitLab installs don't make shallow clones. Instead, they make full clones with a single detached branch, so we need fetch --all instead.

What is git clone -- depth?

"Clone depth" is a feature of git to reduce server load: Instead of cloning the complete repository (as usually done with git), using clone depth just clones the last clone-depth-number revisions of your repository. In literature this is also called "shallow clone"


1 Answers

I fix this issue running: "git fetch origin"

like image 184
Joel Estramil Avatar answered Oct 09 '22 20:10

Joel Estramil