【问题标题】:Why won't git-daemon serve my repositories?为什么 git-daemon 不为我的存储库提供服务?
【发布时间】:2012-02-14 18:48:00
【问题描述】:

我使用的是 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 克隆并推送到这个存储库。

【问题讨论】:

  • 我认为这个问题应该发到serverfault.com。
  • 我想过这一点,但在我看来,领域知识更有可能出现在 SO 上。
  • @Sorvahr:见faq;关于“程序员常用的软件工具”的问题是 StackOverflow 范围的核心部分。

标签: git git-daemon


【解决方案1】:

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

查看Git Community bookSetting Up A Public Repository

【讨论】:

  • 没关系;他正在使用--export-all。
猜你喜欢
  • 2015-11-05
  • 1970-01-01
  • 2012-09-11
  • 2011-11-13
  • 2017-03-25
  • 2015-03-16
  • 1970-01-01
  • 1970-01-01
  • 2018-10-28
相关资源
最近更新 更多