From 518a3566c32cec35c68749c765127ef6f7703630 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 11 Apr 2019 17:53:13 +0900 Subject: [PATCH] Escape arguments to git command during PlugUpgrade Fix #832 --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 4e05630..123035e 100644 --- a/plug.vim +++ b/plug.vim @@ -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