Skip to content

Commit

Permalink
Merge pull request #719 from layus/fixup-harden-git
Browse files Browse the repository at this point in the history
Some git commands were not properly updated.
  • Loading branch information
ryanoasis committed Apr 24, 2016
2 parents 2af7685 + 1f2c331 commit d092561
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions autoload/vundle/installer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit d092561

Please sign in to comment.