Re: [RFC] Submodules in GIT
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Dec 3, 2006, 01:31 UTC
- Message-ID
- <200612030231.05900.jnareb@gmail.com>
- In-Reply-To
- <200612030224.50592.robin.rosenberg.lists@dewire.com>
Dnia niedziela 3. grudnia 2006 02:24, Robin Rosenberg napisał:
Show 13 quoted lines
> lördag 02 december 2006 21:16 skrev Jakub Narebski: > > The problem with submodule as separate git repository is that if you > > move submodule (subproject) somewhere else in the repository (or just > > rename it), you have to update alternates file... and this happens not > > only on move itself, but also on checkout and reset. But that can be > > managed by having in alternates all possible places the submodule ends > > into. I don't know if it is truly a problem. > > A nasty problem with separate repositories for submodules is that when you > screw up and git complains about everything you try do do, you previously > could do rm -rf *; git reset --hard and retry whatever you were trying to do. > With separate repositories your submodules will be resting in /dev/null, > unless you're very, very careful.
Actually, rm -rf * is not needed for "git reset --hard" or "git checkout -f" to succeed.
-- Jakub Narebski