From: Paul Martinolich Date: Fri, 23 Nov 2007 20:35:38 GMT Subject: Re: cloning submodules with children submodules Message-ID: <383F62AA-096E-4D8E-BCE8-B2B87507C596@nrlssc.navy.mil> In-Reply-To: <20071123194904.GL2261MdfPADPa@greensroom.kotnet.org> On Nov 23, 2007, at 1:49 PM, Sven Verdoolaege wrote: > You didn't commit the change to mod_B to proj_one. > Furthermore, you didn't push your changes to mod_B to > the repo you specified for mod_B in .gitmodules. Thanks for the help. It works with the changes below. Paul I changed the creation of mod_b under mod_B to: # add mod_b to mod_B and push the changes back to mod_B cd $GITDIR/proj_one/mod_B git submodule add $GITDIR/modules/mod_b git commit -m 'add module mod_b under module mod_B for project proj_one' git push cd $GITDIR/proj_one git add mod_B git commit -m 'reflect module mod_B update for project proj_one' git status and when I cloned it to: # clone the proj_one project (user user_a) mkdir -p $GITDIR/user_a cd $GITDIR/user_a git clone $GITDIR/proj_one cd $GITDIR/user_a/proj_one # get mod_A and mod_B git submodule init git submodule update # now get mod_b in mod_B cd mod_B git submodule init git submodule update