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

feature: support git versions without --filter flag #442

Closed
1 task done
LostNeophyte opened this issue Jan 23, 2023 · 3 comments · Fixed by #444
Closed
1 task done

feature: support git versions without --filter flag #442

LostNeophyte opened this issue Jan 23, 2023 · 3 comments · Fixed by #444
Labels
enhancement New feature or request

Comments

@LostNeophyte
Copy link

Did you check the docs?

  • I have read all the lazy.nvim docs

Is your feature request related to a problem? Please describe.

lazy doesn't work with older git versions that don't support partial clones

Describe the solution you'd like

an option to remove the --filter flag from git clone arguments, the option to remove it could be passed to lazy.setup or it would be set automatically if older git version is detected

Describe alternatives you've considered

none

Additional context

No response

@folke
Copy link
Owner

folke commented Jan 23, 2023

It's in the requirements for lazy, but i see how that's not ideal for some users...

I'll see to make it configurable. We would always pull the full repo then. I'm not going to add support for shallow clones. Lazy simply can't work with shallow clones, since then we don't have the full commit history

@LostNeophyte
Copy link
Author

It's in the requirements for lazy, but i see how that's not ideal for some users...

I'll see to make it configurable. We would always pull the full repo then. I'm not going to add support for shallow clones. Lazy simply can't work with shallow clones, since then we don't have the full commit history

Sounds good to me, thanks for looking into it

@folke folke closed this as completed in 26a67e3 Jan 23, 2023
@folke
Copy link
Owner

folke commented Jan 23, 2023

Set config.git.filter = false to skip --filter=blob:none

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

Successfully merging a pull request may close this issue.

2 participants