Gitweb 失败:致命:缺少 refs/heads/master 的对象 0000000000000000000000000000000000000000
我正在尝试将 gitweb 与一组由 gitolite 管理的存储库一起使用。我们可以通过 ssh 成功地克隆/推送/拉取它们,没有任何问题。当我尝试查看索引页时,我在 apache 日志中收到以下错误:
fatal: Missing object 0000000000000000000000000000000000000000 for refs/heads/master,referer: http://gitwebbox/gitweb/?p=mlp2.git ;a=summary
我已经运行了 git fsck 并且没有发现任何问题。 master 的 ref 指向对象树中存在的哈希。
有人能帮我找出问题所在吗?谢谢!
I'm trying to use gitweb with a set of repositories that are managed with gitolite. We can successfully clone/push/pull from them over ssh with no problems. When I try to view the index page, I get the following errors in the apache log:
fatal: missing object 0000000000000000000000000000000000000000 for refs/heads/master, referer: http://gitwebbox/gitweb/?p=mlp2.git;a=summary
I've run git fsck and it doesn't find any issues. The ref for master points to a hash that exists in the object tree.
Can anybody help me figure out what is wrong? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
特别是考虑到您正在使用 gitolite 管理存储库,您可能应该验证存储库的权限并验证您可以作为 apache 用户访问它。
您还可以参考 配置 gitolite 的详细说明和 gitweb。
Particularly given that you are managing the repository with gitolite, you probably should verify the permissions on your repository and verify you can access it as your apache user.
You can also refer to the detailed instructions on configuring gitolite and gitweb.