3 ms·
When will submodules' horrible UI finally be fixed? Manually running "git submodule update" after every single command is terrible. Having the submodule in a
by Peaker 12y ago
When will submodules' horrible UI finally be fixed?
Manually running "git submodule update" after every single command is terrible.
Having the submodule in a modified state with "new commits", with no differentiation about whether what changed is the HEAD of the submodule or the parent ptr is also horrible. Did you forget to commit the submodule change? Or did you forget to "git submodule update"? Who knows??
Git clone of a repo that has submodules shows a clean status! It should say: "missing submodules" or ideally, do a "git submodule update --init" by default, but instead you're left wondering why build doesn't work.
- Touche 12y agoEasy solution: just don't use submodules.
- Peaker 12y agoGreat, and now how do you reasonably share a dependency between multiple repositories while correctly tracking the exact version of that dependency at each point in history?
- aeroevan 12y agoUse the repo tool used by android? I'm not sure bout dependency versions at each point in history since AOSP usually just points to tags or branches directly, but it seems to work for their style of large, multiple git repo projects.
- Touche 12y agoUse the dependency tool your language provides. Node for example lets you specify an exact commit, I'm sure most others do as well.
- gsnedders 12y agoPython at least doesn't provide any reasonable dependency tool for third-party test suite data. I can't really package a third-party test suite as a Python program.
- dustingetz 12y agoNot that simple, sometimes you want to change a dependency and test the change without pushing the commit.
- Touche 12y agoWhy can't you do that with the language package manager? In Node you simply change the version number, run npm install, test the changes, either commit or don't.
- mnem 12y agoI find using subtrees much easier than submodules - http://blogs.atlassian.com/2013/05/alternatives-to-git-submodule-git-subtree/ http://blogs.atlassian.com/2013/05/alternatives-to-git-submo... The command line is a little obscure (at least, I can never remember the command to pull the latest remote changes first time) but overall the use of them is a lot nicer, for the way I work at least. Being able to have "local" edits to subtrees while still allowing remote updating and colleagues to clone the repo with the local updates is rather useful.
- dustingetz 12y agoSubtree and submodule solve different problems. I use both often. Sorry about the downvote, I fat thumbed you
- tvon 12y agoA window to change votes would be nice, much like there is a window to edit your comment.
- akerl_ 12y agoFor what it's worth: You can git clone --recursive to get the submodules in one swoop.