bug: Accidentally addad files breaks clone in Windows
mg-bayoo opened this issue · comments
Martin Gondermann commented
Neovim version (nvim -v)
0.9.0
Operating system/version
Windows
Describe the bug
In the last PR (#338) a file was added to the root directory with the same file name as the commit message.
This breaks the cloning in Windows with the following Error:
Steps To Reproduce
- Use Windows
- Try to clone the repository (or use your favorite Plugin Manager to update the plugin)
Expected Behavior
Clone should work
Repro
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
{
"EdenEast/nightfox.nvim",
config = function()
require("nightfox").setup({
-- setup here ...
})
end,
},
-- add any other plugins here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("nightfox")
linrongbin16 commented
It looks like a git commit error, guess the author submit git commit message as a text file.