junegunn / junegunn/vim-plug

Add 'git submodule sync --recursive' to PlugUpdate

Open
#893 1 comment 2 reactions 0 assignees View on GitHub
bug
Dominant language
Vim Script
Stars
35.8k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

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.

------------------------------

- Type:
- [x] Bug
- [ ] Enhancement
- [ ] Feature Request
- [ ] Question
- OS:
- [x] All/Other
- [ ] Linux
- [ ] OS X
- [ ] Windows
- Vim:
- [x] Terminal Vim
- [x] GVim
- [x] Neovim

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.