From 5e7ab87fe3664b0e5e429320f824ee8c0de89d61 Mon Sep 17 00:00:00 2001 From: Constantin Runge Date: Fri, 28 Feb 2014 18:37:54 +0100 Subject: [PATCH] change remote url before updating This doesn't affect the speed in a noticeable way. I still have to test this (especially what happens, when there is a force update or when the new url has absolutely nothing to do with the old one). Signed-off-by: Constantin Runge --- 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 02c7903..4f6c3bc 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -215,7 +215,7 @@ func! s:sync(bang, bundle) abort let git_dir = expand(a:bundle.path().'/.git/', 1) if isdirectory(git_dir) || filereadable(expand(a:bundle.path().'/.git', 1)) if !(a:bang) | return 'todate' | endif - let cmd = 'cd '.vundle#installer#shellesc(a:bundle.path()).' && git pull && git submodule update --init --recursive' + let cmd = 'cd '.vundle#installer#shellesc(a:bundle.path()).' && git remote set-url origin '.vundle#installer#shellesc(a:bundle.uri).' && git pull && git submodule update --init --recursive' let cmd = g:shellesc_cd(cmd)