fix(git): force `autocrlf=false`. Fixes #1055

This commit is contained in:
Folke Lemaitre 2024-05-13 08:34:33 +02:00
parent 758bb5de98
commit d2a4ce22dc
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 6 additions and 0 deletions

View File

@ -84,6 +84,12 @@ M.clone = {
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"
if self.plugin.branch then