Browse Source

Always reset before updating a submodule in order to avoid conflicts

pull/116/head
Marwan Al Jubeh 12 years ago
parent
commit
10628b397c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      autoload/vundle/installer.vim

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

@ -432,7 +432,8 @@ func! s:make_sync_command(bang, bundle) abort
let cmd_parts = [ let cmd_parts = [
\ 'cd '.vundle#installer#shellesc(a:bundle.path()), \ 'cd '.vundle#installer#shellesc(a:bundle.path()),
\ 'git pull',
\ 'git fetch',
\ 'git reset --hard origin/HEAD',
\ 'git submodule update --init --merge --recursive', \ 'git submodule update --init --merge --recursive',
\ ] \ ]
let cmd = join(cmd_parts, ' && ') let cmd = join(cmd_parts, ' && ')


Loading…
Cancel
Save