junegunn / vim-plug

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

Keep track of the default branch of the origin #1272

Closed junegunn closed 8 months ago

junegunn commented 8 months ago

Fix #1005

vim-plug will now run git remote set-head origin -a on PlugUpdate to keep track of the default branch of the origin, so that it can still update even if the default branch has changed.

This additional command will slow down the update process, but this is the unavoidable price to pay for the correctness of the task. However, vim-plug will run checkout and merge commands in parallel, so this improvement will slightly offset the slowdown.