我有一个共享的托pipe帐户与SSH访问。 我已经build立了一个虚拟的Python安装,并在$HOME的系统文件夹的副本: ~/bin, ~/lib …
我已经通过easy_install安装了mercurial,一切都很顺利: hg可执行文件位于~/bin/hg ,我的$PATH知道这一点。 我可以在服务器上创build并提交存储库。
但是,当我试图通过SSH克隆我的笔记本电脑到我的笔记本电脑,我得到一个错误,无法findhg 。
$ hg clone ssh://myuser@server/hg/foobar remote: jailshell: hg: command not found abort: no suitable response from remote hg!
如何告诉mercurial(或SSH或jailshell)在哪里寻找可执行文件?
您可以通过使用--remotecmd选项来指示Mercurial hg命令在远程计算机上的--remotecmd 。 请参阅hg help clone 。
你也可以在你的~/.hgrc或特定的回购克隆的.hg/hgrc中设置它。 我认为它属于[ui]部分。