From 3dbe192a07cdbd85787291a5bb3a096a20a83e35 Mon Sep 17 00:00:00 2001 From: amin roosta Date: Tue, 14 Jul 2015 23:44:56 +0430 Subject: [PATCH] only clone the last version to reduce the download size --- 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]