我正在尝试用mac os x lion在我的mac mini上设置gitosis (全新安装)。
基本上是一个关注的this guide
我还查看了this question
如果我尝试克隆gitosis admin.git代码库,则会出现以下错误:
git clone git@127.0.0.1:gitosis-admin.git
Cloning into gitosis-admin...
Assertion failed: (argv0_path), function system_path, file exec_cmd.c, line 30.
error: git-shell died of signal 6
fatal: The remote end hung up unexpectedly我还尝试使用本地主机、ip或远程ip。
我注意到的一件事是,如果我尝试以git用户(没有密码的标准mac用户)的身份通过ssh登录,我不能登录(Make sens),但是如果我设置了密码,我认为我应该得到如下答案
PTY allocation request failed on channel 0
Connection to gitserver closed.但我可以像平常一样登录。
我已经搜索了大约一个星期,在互联网上没有找到这个错误的结果……
编辑:有一件事,我也在我的macbook pro上安装了gitosis,按照同样的说明,它工作了!我遗漏了什么?
发布于 2011-09-29 15:43:18
好吧奇怪,我想通了..。不知何故,我必须指定来自git用户的home目录的完整路径:
git clone git@host:repositories/gitosis-admin.git使用此命令,我可以克隆目录
https://stackoverflow.com/questions/7580294
复制相似问题