From e28f14df7240ba6c71d52e2cddf82b47a2f9fffb Mon Sep 17 00:00:00 2001 From: Magnus Bergmark Date: Mon, 23 May 2011 22:53:15 -0700 Subject: [PATCH] Init/update submodules in git bundles --- autoload/vundle/installer.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index de4adfe..d34a134 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -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