From cf5879962d21071bff9c23bad623afc02afb61f5 Mon Sep 17 00:00:00 2001 From: Leszek Swirski Date: Mon, 15 Oct 2012 11:21:39 -0700 Subject: [PATCH] Made Vim <7.3.446 shell quoting hack conditional on vim version --- autoload/vundle/installer.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index f7e4375..a108cfb 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -212,7 +212,9 @@ func! s:sync(bang, bundle) abort if (has('win32') || has('win64')) let cmd = substitute(cmd, '^cd ','cd /d ','') " add /d switch to change drives - let cmd = '"'.cmd.'"' " enclose in quotes + if (version < 703 || (version == 703 && !has('patch445'))) + let cmd = '"'.cmd.'"' " enclose in quotes + endif endif let get_current_sha = 'cd '.shellescape(a:bundle.path()).' && git rev-parse HEAD'