Git Clone Failed

Viewed 6187

Problem

I am trying to do the clone from bitbucket. It is failing.

Other stackoverflow posts

I have gone through other stackoverflow posts but could not succeed. Specifically

  1. shallow/unshallow has not worked.
  2. PostBuffer increase to 1 gb has not worked
  3. The core.compression is already 0 means disabled but it did not work

Clone using cmd

I have tried to go --depth 1 with clone and then --unshallow but it did not work.

It gave an error like below when tried git pull --all

enter image description here

Clone using Eclipse(Spring Toolsuite 3)

Then i tried to do the clone using Eclipse(Spring IDE) using ssh but it still failed with the following error

enter image description here

This seems like is because of some large object in history.

Questions

  1. If i am getting this error due to a large object in history, can i remove this? How to do that?
  2. Is this a limitation of git client I am using or the Bitbucket the host of the repository?
  3. Should I try some other git client to clone/pull the repository

More Info

Git Configurations using git config --list

core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=[CERT FILE]
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
credential.helper=manager
user.email=[EMAIL]
user.name=[NAME]
winupdater.recentlyseenversion=2.23.0.windows.1
core.compression=0
http.postbuffer=1048576000
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=[URL]
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master

This repository is not using LFS

A suggestion I have come across is to use an older version of Eclipse that can succeed in cloning. Why is that so?

The error details in eclipse(sts) are as below enter image description here

Spring Tool Suite 4.4.0 has the same error as above, the detail of the env is as below

enter image description here

Java is 64 bit

enter image description here

Some findings/conclusions

  1. The error with STS is a limitation of the JGit that is used in it as the Git client. It has a limitation of size as far as I could understand
  2. That error does not occur if i use git from cmd or even if use another client sourcetree. In this case the error is the other one which says

    fatal: pack has bad object at offset 90599582: inflate returned 1

    fatal: index-pack failed

  3. The eclipse oxygen is able to clone successfully. But it does not make sense what's going on behind the scenes.

1 Answers
Related