Fix install plugins in Cygwin or MSYS2 vim with enabled git core.autocrlf option

This commit is contained in:
Ivan Ryabchenko 2016-06-26 15:52:30 +06:00
parent 460fbe82e0
commit 055f77d26f

View File

@ -931,7 +931,7 @@ function! s:update_impl(pull, force, args) abort
silent! redraw
let s:clone_opt = get(g:, 'plug_shallow', 1) ?
\ '--depth 1' . (s:git_version_requirement(1, 7, 10) ? ' --no-single-branch' : '') : ''
\ '--depth 1' . (s:git_version_requirement(1, 7, 10) ? ' --no-single-branch' : '') . (has('win32unix') ? ' -c core.autocrlf=false' : '') : ''
" Python version requirement (>= 2.7)
if python && !has('python3') && !ruby && !s:nvim && s:update.threads > 1