From 3edc20673d5570bf7d494e6deb5ac6c1e354c305 Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 19 Mar 2011 17:43:06 -0500 Subject: [PATCH] go without Vundle log --- autoload/vundle.vim | 3 --- autoload/vundle/config.vim | 1 - autoload/vundle/installer.vim | 8 ++++---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index a8d1fb2..ca780b9 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -23,9 +23,6 @@ com! -nargs=0 BundleDocs com! -nargs=? -bang BundleSearch \ call vundle#scripts#all('!' == '', ) -com! -nargs=0 VundleLog - \ silent pedit `=g:vundle_log` - func! vundle#rc() let g:bundle_dir = expand('$HOME/.vim/bundle') call vundle#config#init() diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index fc37e31..87115c2 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -7,7 +7,6 @@ endf func! vundle#config#init() if !exists('g:bundles') | let g:bundles = [] | endif - let g:vundle_log = tempname() call s:rtp_rm_a() let g:bundles = [] endf diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 49a338b..718d07a 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -52,15 +52,15 @@ func! s:helptags(rtp) helptags `=a:rtp.'/doc'` endf -func! s:sync(bang, bundle) +func! s:sync(bang, bundle) abort let git_dir = a:bundle.path().'/.git' - silent exec '!echo "* '.a:bundle.name.'" 2>&1 >>'. g:vundle_log if isdirectory(git_dir) if !(a:bang) | return 0 | endif - silent exec '!cd '.a:bundle.path().'; git pull 2>&1 >>'.g:vundle_log + let cmd = 'cd '.a:bundle.path().' && git pull' else - silent exec '!git clone '.a:bundle.uri.' '.a:bundle.path().' 2>&1 >>'.g:vundle_log + let cmd = 'git clone '.a:bundle.uri.' '.a:bundle.path() endif + silent exec '!'.cmd return 1 endf