Cloning Mercurial Repositories via SSH

Date August 5, 2008 by Isaac

I ran into a problem today where I kept trying to clone a Mercurial repository but would get the error:

hg clone ssh://user@machine/home/user/src/repo/
remote: abort: There is no Mercurial repository here (.hg not found)!
abort: no suitable response from remote hg!

It was bugging me because I know that directory is a valid mercurial repository.  Using the "-v" option quickly revealed that Mercurial was trying to use the relative path home/user/src/repo/. So, adding another slash to my command fixed the problem.

hg clone ssh://user@machine//home/user/src/repo/

One Response to “Cloning Mercurial Repositories via SSH”

  1. Avatarsararsw
    1

    nice to see you back on here again. i missed you. hee hee hee

    Reply to this comment.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>