gruntwork-io / git-xargs

git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.
https://blog.gruntwork.io/introducing-git-xargs-an-open-source-tool-to-update-multiple-github-repos-753f9f3675ec
Apache License 2.0
921 stars 63 forks source link

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

Open yanhong-tech opened 3 months ago

yanhong-tech commented 3 months ago

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!

autero1 commented 2 months ago

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