From faf8dd38b6960715b60536822d79ab41bacd8eff Mon Sep 17 00:00:00 2001 From: gmarik Date: Fri, 20 Apr 2012 09:55:40 -0500 Subject: [PATCH] Safeguard when no matches - addresses #162 issues --- autoload/vundle/installer.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 054f5a2..730db3a 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -240,6 +240,9 @@ endf func! s:add_to_updated_bundles(out, bundle) abort let git_pull_shas = matchlist(a:out, 'Updating \(\w\+\)..\(\w\+\)') + + if (empty(git_pull_shas)) | return | endif + let initial_sha = git_pull_shas[1] let updated_sha = git_pull_shas[2]