From 70cbb724eacd090ebef9990d5bfc441c6c4f830a Mon Sep 17 00:00:00 2001 From: Marwan Al Jubeh Date: Wed, 23 Jul 2014 15:22:56 +0300 Subject: [PATCH] Fix bug in deleting submodules for removed plugins --- 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 c5da280..5d4b874 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -291,9 +291,9 @@ func! vundle#installer#delete(bang, dir_name) abort let relative_path = vundle#installer#relative_path(bundle) let cmd_parts = [ \ 'cd '.vundle#installer#shellesc(top_level_path), + \ 'git rm --cached '.vundle#installer#shellesc(relative_path), \ 'git config -f .gitmodules --remove-section submodule.'.vundle#installer#shellesc(relative_path), \ 'git config -f .git/config --remove-section submodule.'.vundle#installer#shellesc(relative_path), - \ 'git rm --cached '.vundle#installer#shellesc(relative_path), \ 'rm -rf '.vundle#installer#shellesc(relative_path), \ 'rm -rf '.vundle#installer#shellesc('.git/modules/'.relative_path), \ ]