简体   繁体   English

为什么git-daemon不提供我的存储库?

[英]Why won't git-daemon serve my repositories?

I'm using git version 1.7.9 and while I've checked and double checked my configuration, I can't get the clones to work from the daemon. 我使用的是git版本1.7.9,并且检查并仔细检查了配置后,无法从守护程序运行克隆。 There's no indication of any error in /var/log/messages: / 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)

Nor on the client: 也不在客户端上:

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

Is there something obviously missing here? 这里明显缺少什么吗?

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

I can clone and push to this repository just fine over SSH. 我可以通过SSH克隆并推送到该存储库。

Do you have the git-daemon-export-ok file in the root of the repo? 您是否在仓库的根目录中有git-daemon-export-ok文件?

See the Git Community book for Setting Up A Public Repository 有关设置公共存储库的信息,请参阅Git社区书

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM