git-xargs icon indicating copy to clipboard operation
git-xargs copied to clipboard

Feature Request - option flag with "--filter=blob:none" to clone repo

Open yanhong-tech opened this issue 1 year ago • 1 comments

Describe the solution you'd like

When we clone the repo, repo has the fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack:invalid index-pack output error. So our solution for the reposition clone is git clone --filter=blob:none <url> refer to here

Now when using this git-xargs tool, the step clone the repo failure with

Error cloning repository 
Error encountered while processing repo "unexpected EOF"

so can we have this flag --filter=blob:none add for git options to clone the repo?

Thanks!

yanhong-tech avatar Apr 18 '24 01:04 yanhong-tech

Looks like go-git doesn't support that for now: https://github.com/go-git/go-git/issues/713

autero1 avatar Apr 21 '24 17:04 autero1