Git development
 help / color / mirror / Atom feed
* Submodule using different repository URLs
@ 2009-07-13  9:57 Peter Voss
  2009-07-13 10:20 ` Santi Béjar
  2009-07-13 10:59 ` Johan Herland
  0 siblings, 2 replies; 8+ messages in thread
From: Peter Voss @ 2009-07-13  9:57 UTC (permalink / raw)
  To: git

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

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

end of thread, other threads:[~2009-07-13 13:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-13  9:57 Submodule using different repository URLs Peter Voss
2009-07-13 10:20 ` Santi Béjar
2009-07-13 12:04   ` Peter Voss
2009-07-13 10:59 ` Johan Herland
2009-07-13 11:51   ` Peter Voss
2009-07-13 12:28     ` Johan Herland
2009-07-13 12:43       ` Johan Herland
2009-07-13 13:33         ` Peter Voss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox