git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* serving git with both "git:" and "http:" and submodules
@ 2010-07-14 15:29 Boaz Harrosh
  2010-07-14 15:39 ` Jonathan Nieder
  2010-07-15  6:46 ` Peter Krefting
  0 siblings, 2 replies; 12+ messages in thread
From: Boaz Harrosh @ 2010-07-14 15:29 UTC (permalink / raw)
  To: Git Mailing List


I have a public tree that I maintain for users. The tree is consisted
of a main-tree and a submodule tree which is also served from the same
server.

The main tree:
git://my-domain.org/my-tree/.git
The sub-tree:
git://my-domain.org/my-tree/sub/.git

in my .gitmodule I have the usual
[submodule "sub"]
        url = git://my-domain.org/my-tree/sub/.git

So smart people using git will just do:
1. $ git clone git://my-domain.org/my-tree/.git
2. $ git submodule init
3. $ git submodule update

And all is well... But smart ass corporate people would not use "git:"
protocol because of fire-walls and for them I have a dumb "http:" export
as:
1. $ git clone http://my-domain.org/trees/my-tree/.git

With them, step 3 above will not work. My current instructions
for them is that after the step 2 "git submodule init" they should
manually edit my-tree/.git/config and change to:
[submodule "sub"]
-        url = git://my-domain.org/my-tree/sub/.git
+        url = http://my-domain.org/trees/my-tree/sub/.git

And then do step 3 to clone the sub-module.

So my question is: Can I automate this so people with "http:"
clones are not forced to manually edit their config files?
(Some users are just not up to it)

Thanks, (Sorry if that has been raised before. Couldn't find any.)
Boaz

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-07-15 23:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-14 15:29 serving git with both "git:" and "http:" and submodules Boaz Harrosh
2010-07-14 15:39 ` Jonathan Nieder
2010-07-14 15:58   ` Boaz Harrosh
2010-07-14 16:12     ` Jonathan Nieder
2010-07-15 14:07   ` Brad King
2010-07-15  6:46 ` Peter Krefting
2010-07-15  7:41   ` [PATCH] gitmodules.5: url can be a relative path Jonathan Nieder
2010-07-15  7:51     ` [PATCH] Documentation: add submodule.* to the big configuration variable list Jonathan Nieder
2010-07-15  9:34       ` Johan Herland
2010-07-15 23:12         ` Jonathan Nieder
2010-07-15  9:32     ` [PATCH] gitmodules.5: url can be a relative path Johan Herland
2010-07-15 10:13     ` Boaz Harrosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).