我已经设置了 lighttpd 和 gitweb。创建了一个空存储库,如下所示:
$server> git --version
git version 1.7.11.7
$server> git --bare init p1
$server> cd p1
$server> git update-server-info
$server> cd ..
$server> chown -R lighttpd:lighttpd p1
在浏览器中我可以浏览这个存储库,但是当我尝试从命令行克隆它时,我得到:
$> git clone https://example.com/git/project.git p1
Cloning into 'p1'...
fatal: https://example.com/git/project.git/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?
而且,也许它有帮助,这是我的 lighttpd 配置
alias.url += (
"/static/gitweb.css" => "/var/www/git/static/gitweb.css",
"/static/git-logo.png" => "/var/www/git/static/git-logo.png",
"/static/git-favicon.png" => "/var/www/git/static/git-favicon.png",
"/static/gitweb.js" => "/var/www/git/static/gitweb.js",
"/git" => "/var/www/git/gitweb.cgi"
)
我确实运行了“git update-server-info”,但没有成功!有什么建议么 ?