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

clone failed: unknown option 'also-filter-submodules' #83

Closed
ziutech opened this issue Dec 21, 2022 · 5 comments
Closed

clone failed: unknown option 'also-filter-submodules' #83

ziutech opened this issue Dec 21, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@ziutech
Copy link

ziutech commented Dec 21, 2022

Describe the bug
After install, every plugin has error 'clone failed', see screenshots.

Which version of Neovim are you using?
v0.8.1

Steps to reproduce

-- init.lua 
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

local plugins = require("user.plugins") -- table of strings "<user>/<repo>"
local opts = {}
require("lazy").setup(plugins, opts)

Screenshots
image

some plugins don't show the error
image

Log
Only list of commits with breaking changes for lazy.nvim

@JordanP-Dev
Copy link

I think --also-filter-submodules is only available on git versions 2.36 and newer.

git/git@f05da2b

@EdenEast
Copy link
Contributor

What version of git are you using. The option --also-filter-submodules was added in version 2.36.0. (released 2022-04-18)

@Taaqif
Copy link

Taaqif commented Dec 22, 2022

I had this issue too. Updating to a newer git version ^2.36.0 solves the problem for me.

@tannerellen
Copy link

I updated git and it resolved this issue for me as well. On Ubuntu...

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt install git

That will bring you to 2.39.0

@folke
Copy link
Owner

folke commented Dec 22, 2022

I just removed that option. It's not really needed, since almost no plugin has submodules.

@folke folke closed this as completed Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants