Cloning Mercurial Repositories via SSH
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/
Posted in 
content rss
