Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

vundle: hack to use my git-cached-clone script if it exists

Signed-off-by: Chris Larson <clarson@kergoth.com>
  • Loading branch information...
commit 4f20f8a32fdd3e4101d48f7fcd1aa0d58e5ec769 1 parent 0d22590
@kergoth authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 vundle/autoload/vundle/installer.vim
View
6 vundle/autoload/vundle/installer.vim
@@ -42,7 +42,11 @@ func! s:sync(bang, bundle)
if !(a:bang) | return 0 | endif
silent exec '!cd '.a:bundle.path().'; git pull 2>&1 >>'.g:vundle_log
else
- silent exec '!git clone '.a:bundle.uri.' '.a:bundle.path().' 2>&1 >>'.g:vundle_log
+ if executable('git-cached-clone')
+ silent exec '!git cached-clone '.a:bundle.uri.' '.a:bundle.path().' 2>&1 >>'.g:vundle_log
+ else
+ silent exec '!git clone '.a:bundle.uri.' '.a:bundle.path().' 2>&1 >>'.g:vundle_log
+ endif
endif
return 1
endf
Please sign in to comment.
Something went wrong with that request. Please try again.