Mercurial clone over ssh

So you want to clone a mercurial repository of over SSH and you try the following command:

    hg clone ssh://user@host/path/to/repo

However you get the following message:

    There is no Mercurial repository here (.hg not found)!

The solution is have use ‘//’ when specifying the path to your repository:

    hg clone ssh://user@host//path//to//repo

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s