From 090b8e5ed40d828e3add78bd003975db23ce3d83 Mon Sep 17 00:00:00 2001 From: Ryan W Date: Sun, 21 Nov 2010 23:02:16 -0400 Subject: [PATCH] fix bug causing files to be put in .vim --- autoload/vundle.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index c671994..077b81b 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -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