2 ms·
Submodules are okay in theory. But in practice the actual implementation is very buggy and incomplete. It's relatively easy to get into a state where your .git
by IshKebab 2y ago
Submodules are okay in theory. But in practice the actual implementation is very buggy and incomplete. It's relatively easy to get into a state where your .git directory is completely broken. Plenty of operations are unreliable to the point that they break CI. They don't work with worktrees.
On top of that they are needlessly confusing. Why is there a .gitmodules file and hidden state inside the .git directory? Why aren't they cloned by default? Many of the UX issues have only been fixed if you turn non-default options on (e.g. the display of diffs can be changed from useless "submodules changed from commit 123 to 456" to "these commits have been added/removed").
Just all-round they are a mediocre idea, implemented badly.