From a69866a942c8940b65638a5886ec296fd1646930 Mon Sep 17 00:00:00 2001 From: gmarik Date: Fri, 27 May 2011 18:56:02 -0500 Subject: [PATCH 1/2] expand bundle path - closes #37 - join is useless there --- autoload/vundle/config.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 96ff8bf..577a6aa 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -77,9 +77,9 @@ endf let s:bundle = {} func! s:bundle.path() - return join([g:bundle_dir, self.name], '/') + return expand(g:bundle_dir.'/'.self.name) endf func! s:bundle.rtpath() - return has_key(self, 'rtp') ? join([self.path(), self.rtp], '/') : self.path() + return has_key(self, 'rtp') ? expand(self.path().'/'.self.rtp) : self.path() endf From 63c3881a793727dcd214d4635a9d636bc1a3310b Mon Sep 17 00:00:00 2001 From: gmarik Date: Fri, 27 May 2011 19:14:40 -0500 Subject: [PATCH 2/2] fix BundleInstall! on windows - closes #45 - add /d swithc to cd command to perform drive change - eclose joined commands with quotes --- autoload/vundle/installer.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index de4adfe..5ffe564 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -66,6 +66,11 @@ func! s:sync(bang, bundle) abort if isdirectory(git_dir) if !(a:bang) | return 0 | endif let cmd = 'cd '.shellescape(a:bundle.path()).' && git pull' + + if (has('win32') || has('win64')) + let cmd = substitute(cmd, '^cd ','cd /d ','') " add /d switch to change drives + let cmd = '"'.cmd.'"' " enclose in quotes + endif else let cmd = 'git clone '.a:bundle.uri.' '.shellescape(a:bundle.path()) endif