Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep track of the default branch of the origin #1272

Merged
merged 2 commits into from
Mar 6, 2024
Merged

Keep track of the default branch of the origin #1272

merged 2 commits into from
Mar 6, 2024

Conversation

junegunn
Copy link
Owner

@junegunn junegunn commented Mar 6, 2024

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.

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.
@junegunn junegunn self-assigned this Mar 6, 2024
@junegunn junegunn merged commit ed19478 into master Mar 6, 2024
2 checks passed
@junegunn junegunn deleted the devel branch March 6, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use the default branch instead of master when branch isn't set explicitly
1 participant