-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Updating plugins should first call git submodule sync
#911
Open
chiphogg opened this issue
Sep 15, 2019
· 0 comments
· Fixed by 5HT2C/Vundle.vim#1 · May be fixed by #912
Open
Updating plugins should first call git submodule sync
#911
chiphogg opened this issue
Sep 15, 2019
· 0 comments
· Fixed by 5HT2C/Vundle.vim#1 · May be fixed by #912
Comments
chiphogg
pushed a commit
to chiphogg/Vundle.vim
that referenced
this issue
Sep 15, 2019
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.
chiphogg
added a commit
to chiphogg/Vundle.vim
that referenced
this issue
Sep 15, 2019
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.
detwiler
pushed a commit
to detwiler/Vundle.vim
that referenced
this issue
Dec 21, 2020
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.
detwiler
added a commit
to detwiler/Vundle.vim
that referenced
this issue
Dec 21, 2020
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. Co-authored-by: Chip Hogg <[email protected]>
5HT2
pushed a commit
to 5HT2C/Vundle.vim
that referenced
this issue
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is to handle the case where a plugin has a git submodule that changes its upstream URL.
In my case, I had to change a submodule-inside-of-a-submodule.
Let's assume I'm currently on any commit before chiphogg/vim-vtd@55771bc. If I do
:PluginUpdate vim-vtd
naively, I getOuch! Angry red exclamation mark; totally obscure and frustrating to most end users.
Then, I go to the repo root for
vim-vtd
, and runThis results in the following log for a successful
:PluginUpdate vim-vtd
:Success!
It seems to me there is a simple, clearly correct fix here: Vundle needs to run
git submodule sync --recursive
before it runs itssubmodule update
command. This is necessary for plugins to continue to Just Work transparently for end users, when plugin authors switch their origin repo for submodules.See also: https://stackoverflow.com/a/45679261
The text was updated successfully, but these errors were encountered: