On Sat, Dec 20, 2008 at 4:52 PM, Michael Terry <[email protected]> wrote:

> Is it possible to fork an external git repo into my private repo as a
> submodule and have it be useful?

Can you be more specific? I don't understand how forking is involved.

So you have two private projects. One is the main project, the other
is a submodule of that project.

> 1. Cloned an external repo and added it to my local repo as a
> submodule. When I pushed, an unclickable folder showing the submodule
> appeared on GitHub.

So far so good.

> 2. Added my private url as remote. Pushed, but no change.

Where did you add your private url? Which private url did you add?

> 3. Made a change to the submodule and pushed. That seemed to work, but
> when I pulled, then submodule updated from another repo, it failed
> with:

At this point, I think what you're saying is that you added the
submodule for a repository you don't own, forked the repository, added
your fork as a remote in the submodule's directory, then pushed there.
When you tried to update the submodule, it failed.

If that's the case, you may want to update the ".gitmodules" file in
the root directory of your main project. That contains information on
the submodules.

-- 
Chris Wanstrath
http://github.com/defunkt

--~--~---------~--~----~------------~-------~--~----~
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