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

fix: Always sync submodules before updating them #1

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

5HT2
Copy link
Member

@5HT2 5HT2 commented Sep 3, 2024

This ensures the origin in .git/config matches the one in .gitmodules. Git will quite appropriately refrain from doing this automatically, because it never allows remote repositories to update local config. You have to ask.

(See: https://stackoverflow.com/a/45679261)

In Vundle's case, it is always correct to sync. These aren't repos that a developer maintains; they are effectively read-only copies of remote state. Since syncing is always correct, and git won't sync unless we ask, then we should always sync.

Fixes VundleVim#911.


Authored by @chiphogg, here: VundleVim#912.

This ensures the origin in `.git/config` matches the one in
`.gitmodules`.  Git will quite appropriately refrain from doing this
automatically, because it never allows remote repositories to update
local config.  You have to ask.

(See: https://stackoverflow.com/a/45679261)

In Vundle's case, it is always correct to sync.  These aren't repos that
a developer maintains; they are effectively read-only copies of remote
state.  Since syncing is always correct, and git won't sync unless we
ask, then we should always sync.

Fixes VundleVim#911.
@5HT2 5HT2 changed the title Always sync submodules before updating them fix: Always sync submodules before updating them Sep 3, 2024
@5HT2 5HT2 merged commit 6365e01 into 5HT2C:master Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updating plugins should first call git submodule sync
2 participants