Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for blobless clones #26

Open
henryju opened this issue Feb 22, 2024 · 1 comment
Open

Add support for blobless clones #26

henryju opened this issue Feb 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@henryju
Copy link

henryju commented Feb 22, 2024

Description

Blobless clones are a suggested optimization to clone large repositories.
git clone --filter=blob:none <url>

The native Git CLI will lazy load blobs on-demand, but JGit simply fails:

$ ./org.eclipse.jgit.pgm-6.8.0.202311291450-r.sh blame build.gradle 
fatal: Missing blob fc321990ffac88fc65d90d41c483db443833aa93

Motivation

I am not sure this is a popular practice to use blobless clones on developer machines, so this is likely not a use case for EGit.
But for other use cases where JGit is used on CI/CD platforms (Jenkins, Maven, Sonar, ...) it would be great to support this feature.

Alternatives considered

The current alternative is to ask users to not use blobless clones, or to stop using JGit and use the native Git CLI.

Additional context

https://community.sonarsource.com/t/missing-blob-jgit-error-with-sonarcloud/109574
https://community.sonarsource.com/t/scan-on-git-blobless-clone-failed/106038

@msohn msohn added the enhancement New feature or request label Feb 26, 2024
@brettjohnsen-sy
Copy link

We are noticing these issues in our Projects using CircleCI and SonarCloud. We would greatly appreciate support for this in the future without workarounds 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants