hg clone http://..... does not work but hg clone git:// does work. Please help.

591 views
Skip to first unread message

snacht

unread,
Feb 19, 2012, 9:10:21 AM2/19/12
to hg-...@googlegroups.com
Hello, 
I need to hg clone http://github.com/Khan/khan-exercises.git to work. It fails with an http 406 error.
hg clone git://github.com/Khan/khan-exercises.git WORKS (from which deduce that hggit is working; output is "extension 'hg-git' overrides commands: gclear git-cleanup gimport gexport"; I have git out of path when I do this).
git clone http://github.com/Khan/khan-exercises.git (from which I deduce that http is a valid protocol to use).

I conclude that using htgit with a url starting with http does not work. Is that right?
I need this work because the khan-exercises.git is a subrepos of another another project.
Anyone?
Thanks.

Lester Caine

unread,
Feb 19, 2012, 12:57:46 PM2/19/12
to hg-...@googlegroups.com

You need the 'git' to tell hg which extension to use ...
git+ssh://g...@github.com:lsces/bitweaver ( without the following '.git' is what
I use to get at my github directories.

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

Augie Fackler

unread,
Feb 19, 2012, 6:44:10 PM2/19/12
to hg-...@googlegroups.com, snacht
On 2/19/2012 8:10 AM, snacht wrote:
> Hello,
> I need to hg clone http://github.com/Khan/khan-exercises.git to work. It
> fails with an http 406 error.
> hg clone git://github.com/Khan/khan-exercises.git WORKS (from which
> deduce that hggit is working; output is "extension 'hg-git' overrides
> commands: gclear git-cleanup gimport gexport"; I have git out of path
> when I do this).
> git clone http://github.com/Khan/khan-exercises.git (from which I deduce
> that http is a valid protocol to use).

I think you need to do git+http:// instead of just http://, and you have
to have the latest release version of dulwich and roughly tip of hg-git.

>
> I conclude that using htgit with a url starting with http does not work.
> Is that right?
> I need this work because the khan-exercises.git is a subrepos of another
> another project.
> Anyone?
> Thanks.
>

> --
> 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/-/HggYBxJfro0J.
> 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.

Raffaele Salmaso

unread,
Feb 19, 2012, 10:46:25 AM2/19/12
to hg-...@googlegroups.com
On Sun, Feb 19, 2012 at 3:10 PM, snacht <ste...@nachtergaele.net> wrote:
> Hello,
> I need to hg clone http://github.com/Khan/khan-exercises.git to work. It
hg clone git+http://github.com/Khan/khan-exercises.git
or better
hg clone git+https://github.com/Khan/khan-exercises.git

--
()_() | That said, I didn't actually _test_ my patch.      | +----
(o.o) | That's what users are for!                         | +---+
'm m' |                                   (Linus Torvalds) |  O  |
(___) |                        raffaele at salmaso dot org |

Augie Fackler

unread,
Mar 1, 2012, 9:38:26 AM3/1/12
to hg-...@googlegroups.com
Make sure you have a recent build of dulwich installed - I think you need 0.8.3 installed for http support.

> --
> You received this message because you are subscribed to the Google Groups "hg-git" group.

Reply all
Reply to author
Forward
0 new messages