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.