gmarik 14 years ago
parent
commit
d713b2737b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      autoload/vundle/installer.vim

+ 2
- 2
autoload/vundle/installer.vim View File

@ -208,7 +208,7 @@ func! s:sync(bang, bundle) abort
let git_dir = expand(a:bundle.path().'/.git/', 1)
if isdirectory(git_dir) || filereadable(expand(a:bundle.path().'/.git', 1))
if !(a:bang) | return 'todate' | endif
let cmd = 'cd '.shellescape(a:bundle.path()).' && git pull'
let cmd = 'cd '.shellescape(a:bundle.path()).' && git pull && git submodule update --init --recursive'
if (has('win32') || has('win64'))
let cmd = substitute(cmd, '^cd ','cd /d ','') " add /d switch to change drives
@ -218,7 +218,7 @@ func! s:sync(bang, bundle) abort
let get_current_sha = 'cd '.shellescape(a:bundle.path()).' && git rev-parse HEAD'
let initial_sha = s:system(get_current_sha)[0:15]
else
let cmd = 'git clone '.a:bundle.uri.' '.shellescape(a:bundle.path())
let cmd = 'git clone --recursive '.a:bundle.uri.' '.shellescape(a:bundle.path())
let initial_sha = ''
endif


Loading…
Cancel
Save