Browse Source

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 <uroc327@cssbook.de>
pull/400/head
Constantin Runge 12 years ago
parent
commit
5e7ab87fe3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      autoload/vundle/installer.vim

+ 1
- 1
autoload/vundle/installer.vim View File

@ -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)


Loading…
Cancel
Save