519d37fc389e1f2faec6fd34cb8ee64a35fa154e

Author
Pieter Kokx <pieter@kokx.nl>
Committer
ncanceill <nicolas.canceill@ens-cachan.org>
Date

Message

Vundle plugin now works with submodules.

If you are using a submodule, ~/.vim/bundle/vundle/.git is a file,
not a directory. So I changed the test for that.

Diff

 1diff --git a/plugins/vundle/vundle.plugin.zsh b/plugins/vundle/vundle.plugin.zsh
 2index 936c8d7d28329a97932d442034a135fc041d4fab..830774fe3f8153234e8ce84686a1aa59db5a5dbd 100644
 3--- a/plugins/vundle/vundle.plugin.zsh
 4+++ b/plugins/vundle/vundle.plugin.zsh
 5@@ -4,7 +4,7 @@ function vundle-init () {
 6     mkdir -p ~/.vim/bundle/vundle/
 7   fi
 8 
 9-  if [ ! -d ~/.vim/bundle/vundle/.git/ ]
10+  if [ ! -d ~/.vim/bundle/vundle/.git ] && [ ! -f ~/.vim/bundle/vundle/.git ]
11   then
12     git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
13     echo "\n\tRead about vim configuration for vundle at https://github.com/gmarik/vundle\n"