Browse Source

fix BundleInstall! on windows

- closes #45
- add /d swithc to cd command to perform drive change
- eclose joined commands with quotes
pull/53/head
gmarik 15 years ago
parent
commit
63c3881a79
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      autoload/vundle/installer.vim

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

@ -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


Loading…
Cancel
Save