Browse Source

fix bug causing files to be put in .vim

pull/10/head
Ryan W 15 years ago
committed by gmarik
parent
commit
090b8e5ed4
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      autoload/vundle.vim

+ 5
- 4
autoload/vundle.vim View File

@ -65,11 +65,12 @@ endf
func! vundle#sync_bundles()
for bundle in g:bundles
let git_dir = bundle.path.'/.git'
let cmd = isdirectory(git_dir) ?
\ '--git-dir='.git_dir.' pull' :
\ 'clone '.bundle.uri.' '.bundle.path
exec '!echo -ne "* '.bundle.name.'"'
silent exec '!git '.cmd
if isdirectory(git_dir)
silent exec '!cd '.bundle.path.'; git pull'
else
silent exec '!git clone '.bundle.uri.' '.bundle.path
endif
endfor
endf


Loading…
Cancel
Save