Browse Source

Completely remove the submodule when cleaning. This fixes a bug that used to break installing a previously removed plugin (for git 1.7.8 and above).

pull/116/head
Marwan Al Jubeh 13 years ago
parent
commit
7a6e282d94
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      autoload/vundle/installer.vim

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

@ -174,9 +174,12 @@ func! vundle#installer#delete(bang, dir_name) abort
let relative_path = prefix.substitute(bundle.path(), g:bundle_dir.'/', '', '')
let cmd = 'cd '.shellescape(top_level)
let cmd .= '; git config -f .git/config --remove-section submodule.'.shellescape(relative_path)
let cmd .= '; git config -f .gitmodules --remove-section submodule.'.shellescape(relative_path)
let cmd .= '; git rm --cached '.shellescape(relative_path).'; '
let cmd .= '; git config -f .git/config --remove-section submodule.'.shellescape(relative_path)
let cmd .= '; git rm --cached '.shellescape(relative_path)
let cmd .= '; rm -rf '.shellescape(relative_path)
let cmd .= '; rm -rf '.shellescape('.git/modules/'.relative_path)
let cmd .= ';'
endif
let cmd .= (has('win32') || has('win64')) ?


Loading…
Cancel
Save