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
The part that doesn't work is it will break for everyone else who has a clone of the repository. Also, it's not enough to edit .gitmodules. You need to also fix the remote in the nested repository. There's a git command to handle doing both instead of doing both manually.
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
Replying to and
They're honestly completely broken trash especially once you have them nested 3 levels deep. It's so incredibly hard to get it to the proper state without deleting the entire repository and starting over. It messed with rebasing, etc. massively too.
1
Show replies