Skip to content

Commit d092561

Browse files
committed
Merge pull request #719 from layus/fixup-harden-git
Some git commands were not properly updated.
2 parents 2af7685 + 1f2c331 commit d092561

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

autoload/vundle/installer.vim

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -428,16 +428,13 @@ func! s:make_sync_command(bang, bundle) abort
428428
endif
429429

430430
let cmd_parts = [
431-
\ 'cd '.vundle#installer#shellesc(a:bundle.path()),
432-
\ g:vundle#git_executable.' pull',
433-
\ g:vundle#git_executable.' submodule update --init --recursive',
434-
\ ]
435-
let cmd = join(cmd_parts, ' && ')
436-
let cmd = vundle#installer#shellesc_cd(cmd)
437-
431+
\ [ 'pull'],
432+
\ [ 'submodule', 'update', '--init', '--recursive']
433+
\]
434+
let cmd = s:make_git_commands(a:bundle, cmd_parts)
438435
let initial_sha = s:get_current_sha(a:bundle)
439436
else
440-
let cmd = g:vundle#git_executable.' clone --recursive '.vundle#installer#shellesc(a:bundle.uri).' '.vundle#installer#shellesc(a:bundle.path())
437+
let cmd = s:make_git_command(a:bundle, ['clone', '--recursive', a:bundle.uri, a:bundle.path()])
441438
let initial_sha = ''
442439
endif
443440
return [cmd, initial_sha]

0 commit comments

Comments
 (0)