Pushing hg subrepo to Github

172 views
Skip to first unread message

gidyn

unread,
Apr 29, 2012, 3:37:13 AM4/29/12
to hg-git
I've got an hg repo with a subrepo. When I try pushing to Github, hg-
git attempts to push to the non-existant subrepository, and fails with
404.

The repos are defined as siblings, subrepo = ../subrepo. hg-git tries
pushing to git+https://github.com/me/repo.git, which is correct, then
git+https://github.com/me/subrepo, which should be git+https://
github.com/me/subrepo.git.

Augie Fackler

unread,
Apr 29, 2012, 10:10:58 AM4/29/12
to hg-...@googlegroups.com

On Apr 29, 2012, at 2:37 AM, gidyn wrote:

> I've got an hg repo with a subrepo. When I try pushing to Github, hg-
> git attempts to push to the non-existant subrepository, and fails with
> 404.
>
> The repos are defined as siblings, subrepo = ../subrepo.

Try subrepo = ../subrepo.git, given what you said below.

(Disclaimer: I know basically nothing about subrepos.)

> hg-git tries
> pushing to git+https://github.com/me/repo.git, which is correct, then
> git+https://github.com/me/subrepo, which should be git+https://
> github.com/me/subrepo.git.
>
> --
> You received this message because you are subscribed to the Google Groups "hg-git" group.
> To post to this group, send email to hg-...@googlegroups.com.
> To unsubscribe from this group, send email to hg-git+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/hg-git?hl=en.
>

gidyn

unread,
Apr 29, 2012, 11:57:33 AM4/29/12
to hg-...@googlegroups.com
That would work for Github, but it would break Bitbucket (and my local clone).


On Sunday, 29 April 2012 17:10:58 UTC+3, Augie wrote:

On Apr 29, 2012, at 2:37 AM, gidyn wrote:

> I've got an hg repo with a subrepo. When I try pushing to Github, hg-
> git attempts to push to the non-existant subrepository, and fails with
> 404.
>
> The repos are defined as siblings, subrepo = ../subrepo.

Try subrepo = ../subrepo.git, given what you said below.

(Disclaimer: I know basically nothing about subrepos.)

> hg-git tries
> pushing to  git+https://github.com/me/repo.git, which is correct, then
> git+https://github.com/me/subrepo, which should be git+https://
> github.com/me/subrepo.git.
>
> --
> You received this message because you are subscribed to the Google Groups "hg-git" group.
> To post to this group, send email to hg-...@googlegroups.com.
> To unsubscribe from this group, send email to hg-git+unsubscribe@googlegroups.com.

Augie Fackler

unread,
Apr 29, 2012, 3:14:42 PM4/29/12
to hg-...@googlegroups.com, gidyn, mar...@geisler.net
On 4/29/2012 10:57 AM, gidyn wrote:
> That would work for Github, but it would break Bitbucket (and my local
> clone).

I'm pretty sure there's a way to do something along these lines, adding
mg so he can comment.

>
> On Sunday, 29 April 2012 17:10:58 UTC+3, Augie wrote:
>
>
> On Apr 29, 2012, at 2:37 AM, gidyn wrote:
>
> > I've got an hg repo with a subrepo. When I try pushing to Github,
> hg-
> > git attempts to push to the non-existant subrepository, and fails
> with
> > 404.
> >
> > The repos are defined as siblings, subrepo = ../subrepo.
>
> Try subrepo = ../subrepo.git, given what you said below.
>
> (Disclaimer: I know basically nothing about subrepos.)
>
> > hg-git tries
> > pushing to git+https://github.com/me/repo.git
> <https://github.com/me/repo.git>, which is correct, then
> > git+https://github.com/me/subrepo
> <https://github.com/me/subrepo>, which should be git+https://
> > github.com/me/subrepo.git <http://github.com/me/subrepo.git>.
> >
> > --
> > You received this message because you are subscribed to the
> Google Groups "hg-git" group.
> > To post to this group, send email to hg-...@googlegroups.com
> <mailto:hg-...@googlegroups.com>.
> > To unsubscribe from this group, send email to
> hg-git+un...@googlegroups.com
> <mailto:hg-git%2Bunsu...@googlegroups.com>.
> > For more options, visit this group at
> http://groups.google.com/group/hg-git?hl=en
> <http://groups.google.com/group/hg-git?hl=en>.
> >
>
> --
> You received this message because you are subscribed to the Google
> Groups "hg-git" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hg-git/-/FId2UtQLvFEJ.
> To post to this group, send email to hg-...@googlegroups.com.
> To unsubscribe from this group, send email to
> hg-git+un...@googlegroups.com.

gidyn

unread,
Apr 29, 2012, 4:15:57 PM4/29/12
to hg-...@googlegroups.com, gidyn, mar...@geisler.net
There may be a solution in the [subpaths] section of the config file. I've asked about this in a related Bitbucket thread (https://groups.google.com/forum/?fromgroups#!topic/bitbucket-users/mNN0oTATQUo), and the answer might assist here as well.
>     <mailto:hg-git@googlegroups.com>.
>      > To unsubscribe from this group, send email to
>     hg-git+unsubscribe@googlegroups.com
>     <mailto:hg-git%2Bunsubscribe@googlegroups.com>.
>      > For more options, visit this group at
>     http://groups.google.com/group/hg-git?hl=en
>     <http://groups.google.com/group/hg-git?hl=en>.
>      >
>
> --
> You received this message because you are subscribed to the Google
> Groups "hg-git" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hg-git/-/FId2UtQLvFEJ.
> To post to this group, send email to hg-...@googlegroups.com.
> To unsubscribe from this group, send email to
> hg-git+unsubscribe@googlegroups.com.

gidyn

unread,
Apr 30, 2012, 8:32:17 AM4/30/12
to hg-...@googlegroups.com, mar...@geisler.net
[subpaths]
^git\+https://github\.com/([^/]*)/([^/.]*)$ = git+https://github.com/\1/\2.git
:-)
Reply all
Reply to author
Forward
0 new messages