Conversation

git submodules are such broken trash. The only reason we're even using them is to work around the Linux kernel setting EXTRAVERSION with git describe... So ridiculously bad though. Is there at least a way of automatically dealing with a repo you cloned changing submodule URLs?
2
8
Replying to and
That doesn't resolve that it breaks for everyone downstream though. It doesn't update the remote to the new one for them when they do `git submodule update --init --recursive`. How are they even supposed to deal with it beyond knowing what changed and fixing each repository?
1
Replying to and
It will try fetching a new revision from the old remote for them even though .gitmodules was updated because git doesn't actually bother syncing the nested repository to the new configuration. I don't see a way to do that automatically. I tried figuring it out.
1
Show replies