ssh push to repos outside an homedirectory?
ryan king
ryan at theryanking.com
Tue Jun 27 19:44:46 CDT 2006
On Jun 27, 2006, at 12:13 AM, Bryan O'Sullivan wrote:
> On Mon, 2006-06-26 at 22:54 -0700, ryan king wrote:
>> It seems that the paths given when using ssh to push or pull from a
>> repository are always relative from $HOME.
>
> Yep.
>
>> Is there no way to work
>> with repositories outside one's home directory via ssh?
>
> Sure - just give an extra slash for an absolute path.
>
> Compare:
>
> ssh://hostname/path-relative-to-home
>
> And:
>
> ssh://hostname//absolute-path
Ok, good to know that works. I have to ask, though, why is this
different than other ssh-based things like scp and rsync with use a
colon like this:
scp foo hostname:/absolute_path
rsync -e ssh foo hostname:~/homedir_path
?
It seems like it violates the Law of Least Surprise. I may be the
only one, but it was nearly impossible for me to figure out on my own.
Just a suggestion.
-ryan
More information about the Mercurial
mailing list