junegunn / vim-plug

:hibiscus: Minimalist Vim Plugin Manager
https://junegunn.github.io/vim-plug/
MIT License
34.09k stars 1.93k forks source link

Add 'git submodule sync --recursive' to PlugUpdate #893

Open mschlaeffer opened 5 years ago

mschlaeffer commented 5 years ago

Some plugins use several nested git submodules (e.g. YouCompleteMe). If the URL of one of these submodules changes, PlugUpdate fails. Also git submodule update --init --recursive fails in the command line in this case:

error: Server does not allow request for unadvertised object ... Fetched in submodule path '...', but it did not contain .... Direct fetching of that commit failed. Failed to recurse into submodule path '...'

The fix is to call git submodule sync --recursive prior to git submodule update --init --recursive in PlugUpdate.


pinggit commented 5 years ago

exactly. another example is pymode