If the submodule is a private repo, you need to use the "[email protected]..."
URL (without "git://").  Keep in mind that everyone who clones the repo will
need to be a collab on the submodule repo as well or they won't be able to
pull it.

On Thu, Feb 19, 2009 at 5:42 AM, cleaner416 <[email protected]> wrote:

>
> I have a rails project I'm keeping in a private repository.  I also
> have a plugin I'd like to use for the project in another private
> repository, both under the same account.  I've huffed and puffed, but
> I cannot figure out the syntax for adding the submodule to the
> project.  Here's what I've tried:
>
> git submodule add git://github.com/<myaccount>/<mysubrepo>.git vendor/
> plugins/<mysubrepo>
> git submodule add git://[email protected]/<myaccount>/<mysubrepo>.git
> vendor/plugins/<mysubrepo>
> git submodule add ssh://github.com/<myaccount>/<mysubrepo>.git vendor/
> plugins/<mysubrepo>
> git submodule add ssh://[email protected]/<myaccount>/<mysubrepo>.git
> vendor/plugins/<mysubrepo>
>
> What am I missing? Many thanks in advance ...
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GitHub" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/github?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to