mirror of https://github.com/folke/lazy.nvim.git
fix(git): force `autocrlf=false`. Fixes #1055
This commit is contained in:
parent
758bb5de98
commit
d2a4ce22dc
|
@ -84,6 +84,12 @@ M.clone = {
|
||||||
|
|
||||||
args[#args + 1] = "--origin=origin"
|
args[#args + 1] = "--origin=origin"
|
||||||
|
|
||||||
|
-- If git config --global core.autocrlf is true on a Unix/Linux system, then the git clone
|
||||||
|
-- process will lead to files with CRLF endings. Vi / vim / neovim cannot handle this.
|
||||||
|
-- Force git to clone with core.autocrlf=false.
|
||||||
|
args[#args + 1] = "-c"
|
||||||
|
args[#args + 1] = "core.autocrlf=false"
|
||||||
|
|
||||||
args[#args + 1] = "--progress"
|
args[#args + 1] = "--progress"
|
||||||
|
|
||||||
if self.plugin.branch then
|
if self.plugin.branch then
|
||||||
|
|
Loading…
Reference in New Issue