Browse Source

Fix bug in relative_path method

pull/116/head
Marwan Al Jubeh 12 years ago
parent
commit
9c534e67fc
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      autoload/vundle/installer.vim

+ 4
- 4
autoload/vundle/installer.vim View File

@ -268,11 +268,11 @@ func! vundle#installer#top_level_path() abort
return out
endf
func! vundle#installer#relative_path() abort
func! vundle#installer#relative_path(bundle) abort
let cmd = 'cd '.vundle#installer#shellesc(g:bundle_dir).' && git rev-parse --show-prefix'
let cmd = vundle#installer#shellesc_cd(cmd)
let prefix = s:strip(s:system(cmd))
return prefix.substitute(bundle.path(), g:bundle_dir.'/', '', '')
return prefix.substitute(a:bundle.path(), g:bundle_dir.'/', '', '')
endf
" ---------------------------------------------------------------------------
@ -288,7 +288,7 @@ func! vundle#installer#delete(bang, dir_name) abort
if vundle#installer#should_use_submodules()
let top_level_path = vundle#installer#top_level_path()
let relative_path = vundle#installer#relative_path()
let relative_path = vundle#installer#relative_path(bundle)
let cmd_parts = [
\ 'cd '.vundle#installer#shellesc(top_level_path),
\ 'git config -f .gitmodules --remove-section submodule.'.vundle#installer#shellesc(relative_path),
@ -442,7 +442,7 @@ func! s:make_sync_command(bang, bundle) abort
else
if vundle#installer#should_use_submodules()
let top_level_path = vundle#installer#top_level_path()
let relative_path = vundle#installer#relative_path()
let relative_path = vundle#installer#relative_path(a:bundle)
let cmd_parts = [
\ 'cd '.vundle#installer#shellesc(top_level_path),
\ 'git submodule add '.vundle#installer#shellesc(a:bundle.uri).' '.vundle#installer#shellesc(relative_path),


Loading…
Cancel
Save