Skip to content

Commit

Permalink
Vundle can manage Vundle, when it cloned as git submodule
Browse files Browse the repository at this point in the history
When vundle installed as git submodule, git create file '.git' instead of
directory '.git'.

And vundle cannot update by self :(
  • Loading branch information
Yury Khalyavin committed Jun 20, 2012
1 parent 59bff0c commit 5e9cbda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/vundle/installer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 5e9cbda

Please sign in to comment.