0

我正在使用 git 版本 1.7.9,虽然我已经检查并仔细检查了我的配置,但我无法让克隆从守护进程中工作。/var/log/messages 中没有任何错误的迹象:

Feb 14 13:40:36 build git-daemon[9226]: Connection from 10.103.26.134:55331
Feb 14 13:40:36 build git-daemon[9226]: Extended attributes (22 bytes) exist <host=hostname.local>
Feb 14 13:40:36 build git-daemon[9226]: Request upload-pack for '/project.git'
Feb 14 13:40:36 build git-daemon[9220]: [9226] Disconnected (with error)

也不在客户端:

D:\git>git clone git://hostname.local/project.git project
Cloning into 'project'...
fatal: The remote end hung up unexpectedly

这里有什么明显的缺失吗?

git       9220     1  0 13:40 ?        00:00:00 /usr/local/libexec/git-core/git-daemon --user=git --reuseaddr --verbose --detach --export-all --base-path=/home/git

我可以通过 SSH 克隆并推送到这个存储库。

4

1 回答 1

0

你在 repo 的根目录中有git-daemon-export-ok文件吗?

有关设置公共存储库,请参阅Git 社区书籍

于 2012-02-14T21:38:47.710 回答