Escape arguments to git command during PlugUpgrade

Fix #832
This commit is contained in:
Junegunn Choi 2019-04-11 17:53:13 +09:00
parent d1c19a6fa9
commit 518a3566c3
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -2224,7 +2224,7 @@ function! s:upgrade()
let new = tmp . '/plug.vim'
try
let out = s:system(printf('git clone --depth 1 %s %s', s:plug_src, tmp))
let out = s:system(printf('git clone --depth 1 %s %s', s:shellesc(s:plug_src), s:shellesc(tmp)))
if v:shell_error
return s:err('Error upgrading vim-plug: '. out)
endif