Submodule using different repository URLs
- From
Peter Voss <info@petervoss.org>
- Date
- Jul 13, 2009, 09:57 UTC
- Message-ID
- <5BE6F3DC-4B00-4D84-8D0E-41057735483F@petervoss.org>
Hi,
I want to use the git submodule feature to move part of my code to a different repository at github.
The issue is that developers should use different repository URLs for the submodule depending on whether they have commit rights or not.
At the beginning I was using the public URL to set-up the submodule: git submodule add git://github.com/x/mymodule.git mymodule
The issue is that some developers are working behind a firewall that blocks the git protocol. These could only use the git@github.com:x/ mymodule.git URL to get access. But other developers can only go through the public URL git:// github.com/x/mymodule.git. So whatever I use it won't work for everybody.
What's the best way to deal with that? Could I set-up different repository URLs for one and the same submodule and use which one is appropriate?
Thanks, --Peter