Vla*_*nko 5 mercurial mercurial-server
我正在尝试安装mercurial-server.将我的密钥添加到keys/root刷新身份验证后,我尝试克隆hgadmin-repo,但是我收到以下错误:
$ hg clone ssh://hg@<domain>/hgadmin
remote: mercurial-server: no such repository hgadmin
abort: no suitable response from remote hg!
Run Code Online (Sandbox Code Playgroud)
谁知道问题是什么?
我遇到了同样的问题,对我而言,安装hgadmin存储库时遇到了问题.当我安装软件包时,我从python中得到错误,说没有安装mercurial软件包.我假设当mercurial-server尝试初始化hgadmin存储库时发生了这种情况.所以当我去结账hgadmin respistory时,没有.hg目录:
root@myshost:/var/lib/mercurial-server/repos# cd hgadmin/
root@myshost:/var/lib/mercurial-server/repos/hgadmin# ls -a
. ..
Run Code Online (Sandbox Code Playgroud)
为了解决这个问题,我做了:
easy_install mercurial
sudo apt-get purge mercurial-server
sudo rm -rf /var/lib/mercurial-server
sudo apt-get install mercurial-server
Run Code Online (Sandbox Code Playgroud)
然后继续这里的指示:
http://kurtgrandis.com/blog/2010/03/20/gitosis-for-mercurial/
您确定您的克隆命令语法正确吗?我发现其中至少有两个错误:
示例失败(缺少源存储库并且在“home”之前仅使用一个“/”)
$ hg clone ssh://John@127.0.0.1/home/John/delme
Run Code Online (Sandbox Code Playgroud)
示例失败(缺少源存储库)
$ hg clone . ssh://John@127.0.0.1/home/John/delme
Run Code Online (Sandbox Code Playgroud)
成功示例:
$ hg clone . ssh://John@127.0.0.1//home/John/delme
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1615 次 |
| 最近记录: |