On Tue, Jan 08, 2013 at 06:12:13PM +0100, Jens Lehmann wrote: > Am 08.01.2013 15:32, schrieb W. Trevor King: > > The Git directory for the > > submodule stays in .git/modules/submod-1/ (good), but the worktree in > > .git/modules/submod-1/config still points to ../../../submod-1 (bad). > > You'll not only have to update the gitfile but also the core.worktree > setting in the repo. Sorry I missed that when you posted your script. My git-submodule-mv.sh script does update core.worktree. The problem is that `git checkout`, `git merge`, etc. do not. > > This means that submodule moves are possible, but anyone trying to > > share them between several repositories (or trying to rebase across > > the move within their own repository) is in for a world of suffering > > ;). I'm not sure how this should be addressed, but I didn't see > > anything handling it in Jens' new series. > > If you adjust core.worktree properly you'll just have the old > submodule work tree lying around (just like you do after you rm'd > it) and everything apart from that should just work. > > As I mentioned that will be fixed by recursive submodule checkout. > I'll see if I can polish my preliminary branch so that interested > people can play around with it if anyone is interested. Sounds like a fix will be in here. I'll definitely help put the branch through its paces ;). Trevor -- This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
Attachment:
signature.asc
Description: OpenPGP digital signature