Browse Source

Fix Windows relative paths

Submodule paths must be in the form bundle/plugin. If a submodule is
added with the path as bundle/\plugin 'git submodule init' will fail.
pull/116/head
Marwan Al Jubeh 12 years ago
parent
commit
f5bb40260b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      autoload/vundle/installer.vim

+ 3
- 1
autoload/vundle/installer.vim View File

@ -278,7 +278,9 @@ func! vundle#installer#relative_path(bundle) abort
let cmd = vundle#installer#shellesc_cd(cmd)
let prefix = s:strip(s:system(cmd))
let pattern = '\V'.substitute(g:bundle_dir, '\\', '\\\\', 'g')
return prefix.substitute(a:bundle.path(), pattern, '', '')
let suffix = substitute(a:bundle.path(), pattern, '', '')
let suffix = substitute(suffix, '^\\', '', '')
return prefix.suffix
endf
" ---------------------------------------------------------------------------


Loading…
Cancel
Save