Browse Source

Init/update submodules in git bundles

pull/41/head
Magnus Bergmark 15 years ago
parent
commit
e28f14df72
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      autoload/vundle/installer.vim

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

@ -65,9 +65,9 @@ func! s:sync(bang, bundle) abort
let git_dir = expand(a:bundle.path().'/.git/')
if isdirectory(git_dir)
if !(a:bang) | return 0 | endif
let cmd = 'cd '.shellescape(a:bundle.path()).' && git pull'
let cmd = 'cd '.shellescape(a:bundle.path()).' && git pull && git submodule update --recursive --init'
else
let cmd = 'git clone '.a:bundle.uri.' '.shellescape(a:bundle.path())
let cmd = 'git clone --recursive '.a:bundle.uri.' '.shellescape(a:bundle.path())
endif
silent exec '!'.cmd
return 1


Loading…
Cancel
Save