This commit is contained in:
commit
d713b2737b
@ -208,7 +208,7 @@ func! s:sync(bang, bundle) abort
|
|||||||
let git_dir = expand(a:bundle.path().'/.git/', 1)
|
let git_dir = expand(a:bundle.path().'/.git/', 1)
|
||||||
if isdirectory(git_dir) || filereadable(expand(a:bundle.path().'/.git', 1))
|
if isdirectory(git_dir) || filereadable(expand(a:bundle.path().'/.git', 1))
|
||||||
if !(a:bang) | return 'todate' | endif
|
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'))
|
if (has('win32') || has('win64'))
|
||||||
let cmd = substitute(cmd, '^cd ','cd /d ','') " add /d switch to change drives
|
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 get_current_sha = 'cd '.shellescape(a:bundle.path()).' && git rev-parse HEAD'
|
||||||
let initial_sha = s:system(get_current_sha)[0:15]
|
let initial_sha = s:system(get_current_sha)[0:15]
|
||||||
else
|
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 = ''
|
let initial_sha = ''
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user