From b0a6c19b00eca4272db262e5a7f7c5b338f96981 Mon Sep 17 00:00:00 2001 From: flgc Date: Sun, 19 Mar 2017 11:21:37 +0900 Subject: [PATCH] feat: Use --depth 1 for git cloning --- autoload/vundle/installer.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 472271a..e8a4c38 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -415,7 +415,7 @@ func! s:make_sync_command(bang, bundle) abort let initial_sha = s:get_current_sha(a:bundle) else - let cmd = 'git clone --recursive '.vundle#installer#shellesc(a:bundle.uri).' '.vundle#installer#shellesc(a:bundle.path()) + let cmd = 'git clone --depth 1 --recursive '.vundle#installer#shellesc(a:bundle.uri).' '.vundle#installer#shellesc(a:bundle.path()) let initial_sha = '' endif return [cmd, initial_sha]