簡體   English   中英

為什么git-daemon不提供我的存儲庫?

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

我使用的是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克隆並推送到該存儲庫。

您是否在倉庫的根目錄中有git-daemon-export-ok文件?

有關設置公共存儲庫的信息,請參閱Git社區書

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM