News for hackers. Stuff that matters.
Re:Mastering Git submodules by jawngee on Friday February 20, 2015 @10:05AM (#9080670)
I swear I must be the only person in the world that has no problems using submodules and I use them constantly. It puzzles me that people have such problems with it, which I guess illustrates how unreliable anecdotal evidence really is.

I've had detached head issues, but nothing that didn't take a minute or two to solve.

It might be that I'm using SourceTree exclusively, so maybe SourceTree is hiding away the painful bits or something.

Re:Mastering Git submodules by dukerutledge on Friday February 20, 2015 @12:50PM (#9081653)
If you are using submodules for pinning external resources to a specific hash then you probably won't have problems. If you are using them to manage multiple internal resources with varying levels of coupling...you will.
Re:Mastering Git submodules by bronson on Friday February 20, 2015 @11:27AM (#9081105)
I'd guess you aren't working on a team, and don't check out commits before your submodules were added?

If you don't roll forward and back in time (bisect), and you don't have merge conflicts, and you can easily resolve abandoned commits on submodules (i.e. you don't have to wait for Bangalore to wake up and push their changes) then, yes, you probably won't have many issues.

Re:Mastering Git submodules by nailer on Friday February 20, 2015 @10:54AM (#9080891)
Same here on both counts - have been using ST as my main git interface since 2011 (I still use command line for git init, reflog, and checking stuff remotely on VMs, and git bfg if someone committed a credential), and using submodules across a wide variety of projects. I've never had a problem, and only avoid subtrees to be nice to my colleagues that have had problems
Re:Mastering Git submodules by e40 on Friday February 20, 2015 @10:50AM (#9080878)
which I guess illustrates how unreliable anecdotal evidence really is.

Or, maybe your use case skirts around the problems?

Re:Mastering Git submodules by edvinbesic on Friday February 20, 2015 @11:10AM (#9080987)
I think you're both saying the same thing.