Skip to content

Commit

Permalink
Merge pull request #185 from snufrick/master
Browse files Browse the repository at this point in the history
Vundle can manage Vundle, when it cloned as git submodule
  • Loading branch information
gmarik committed Jul 1, 2012
2 parents 59bff0c + 5e9cbda commit d9e2f79
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 d9e2f79

Please sign in to comment.