From e3810d3ec17c36df41c690d1fb482ec1c3b341d2 Mon Sep 17 00:00:00 2001 From: Christian Rondeau Date: Fri, 10 Mar 2017 13:50:35 -0500 Subject: [PATCH] Fix crlf in clones under cygwin (#497) --- plug.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plug.vim b/plug.vim index 3a227e2..7e52441 100644 --- a/plug.vim +++ b/plug.vim @@ -986,6 +986,10 @@ function! s:update_impl(pull, force, args) abort let s:clone_opt = get(g:, 'plug_shallow', 1) ? \ '--depth 1' . (s:git_version_requirement(1, 7, 10) ? ' --no-single-branch' : '') : '' + if has('win32unix') + let s:clone_opt .= ' -c core.eol=lf -c core.autocrlf=input' + endif + " Python version requirement (>= 2.7) if python && !has('python3') && !ruby && !use_job && s:update.threads > 1 redir => pyv