From 5e9cbda7beaa185751ffa99562653578db58fe51 Mon Sep 17 00:00:00 2001 From: Yury Khalyavin Date: Wed, 20 Jun 2012 10:54:36 +0400 Subject: [PATCH] Vundle can manage Vundle, when it cloned as git submodule When vundle installed as git submodule, git create file '.git' instead of directory '.git'. And vundle cannot update by self :( --- autoload/vundle/installer.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 38a2436..036a756 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -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'