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
.
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.
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.
"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"
I fix this issue running: "git fetch origin"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With