Skip to content

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