Browse Source

Call 'git submodule init' to add the new submodule to .git/config

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

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

@ -209,7 +209,7 @@ func! s:sync(bang, bundle) abort
let top_level = substitute(s:system('cd '.shellescape(g:bundle_dir).'; git rev-parse --show-toplevel'), '\n', '', 'g') let top_level = substitute(s:system('cd '.shellescape(g:bundle_dir).'; git rev-parse --show-toplevel'), '\n', '', 'g')
let prefix = substitute(s:system('cd '.shellescape(g:bundle_dir).'; git rev-parse --show-prefix'), '\n', '', 'g') let prefix = substitute(s:system('cd '.shellescape(g:bundle_dir).'; git rev-parse --show-prefix'), '\n', '', 'g')
let relative_path = prefix.substitute(a:bundle.path(), g:bundle_dir.'/', '', '') let relative_path = prefix.substitute(a:bundle.path(), g:bundle_dir.'/', '', '')
let cmd = 'cd '.shellescape(top_level).'; git submodule add '.a:bundle.uri.' '.shellescape(relative_path)
let cmd = 'cd '.shellescape(top_level).'; git submodule add '.a:bundle.uri.' '.shellescape(relative_path).'; git submodule init'
endif endif
endif endif


Loading…
Cancel
Save