From 1f2c3315944d616add131bf07bb1371020f4a8b7 Mon Sep 17 00:00:00 2001 From: Guillaume Maudoux Date: Sat, 23 Apr 2016 13:29:30 +0200 Subject: [PATCH] fixup harden git --- autoload/vundle/installer.vim | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index ff2d278..6c4517c 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -428,16 +428,13 @@ func! s:make_sync_command(bang, bundle) abort endif let cmd_parts = [ - \ 'cd '.vundle#installer#shellesc(a:bundle.path()), - \ g:vundle#git_executable.' pull', - \ g:vundle#git_executable.' submodule update --init --recursive', - \ ] - let cmd = join(cmd_parts, ' && ') - let cmd = vundle#installer#shellesc_cd(cmd) - + \ [ 'pull'], + \ [ 'submodule', 'update', '--init', '--recursive'] + \] + let cmd = s:make_git_commands(a:bundle, cmd_parts) let initial_sha = s:get_current_sha(a:bundle) else - let cmd = g:vundle#git_executable.' clone --recursive '.vundle#installer#shellesc(a:bundle.uri).' '.vundle#installer#shellesc(a:bundle.path()) + let cmd = s:make_git_command(a:bundle, ['clone', '--recursive', a:bundle.uri, a:bundle.path()]) let initial_sha = '' endif return [cmd, initial_sha]