Re: serving git with both "git:" and "http:" and submodules
- From
Peter Krefting <peter@softwolves.pp.se>
- Date
- Jul 15, 2010, 06:46 UTC
- Message-ID
- <alpine.DEB.2.00.1007150745340.13735@perkele.intern.softwolves.pp.se>
- In-Reply-To
- <4C3DD7EF.6010805@panasas.com>
Boaz Harrosh:
> [submodule "sub"] > url = git://my-domain.org/my-tree/sub/.git
> So my question is: Can I automate this so people with "http:" clones are > not forced to manually edit their config files?
You should be able to use a relative URL in .gitmodules, something like this should work:
[submodule "sub"]
url = ../sub/.git-- \\// Peter - http://www.softwolves.pp.se/