Browse Source

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 :(
pull/185/head
Yury Khalyavin 14 years ago
parent
commit
5e9cbda7be
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      autoload/vundle/installer.vim

+ 1
- 1
autoload/vundle/installer.vim 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'


Loading…
Cancel
Save