Merge pull request #185 from snufrick/master

Vundle can manage Vundle, when it cloned as git submodule
This commit is contained in:
gmarik 2012-07-01 10:52:17 -07:00
commit d9e2f79ee8

View File

@ -204,7 +204,7 @@ endf
func! s:sync(bang, bundle) abort
let git_dir = expand(a:bundle.path().'/.git/', 1)
if isdirectory(git_dir)
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'