错误`remote:fatal:bad object 0000000000000000000000000000000000000000`是什么意思?

时间:2012-04-04 09:48:27

标签: git

推送到git repo之后,我收到了这个错误:

[trusktr@starlancer bml]$ git push origin trusktr
Password: 
Counting objects: 13, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 763 bytes, done.
Total 7 (delta 6), reused 0 (delta 0)
remote: fatal: bad object 0000000000000000000000000000000000000000
To ssh://trusktr@buzztard.git.sourceforge.net/gitroot/buzztard/bml
 * [new branch]      trusktr -> trusktr

1 个答案:

答案 0 :(得分:7)

remote:开头的任何内容都是接收上传的主机打印的内容。在这种情况下,它几乎肯定是一个(稍微)破坏的post-receive钩子,它不能正确处理“new branch created”。 (一个新的分支,作为它的“旧”sha1,NULL sha1 0 {40}。如果钩子试图将它用作提交ID,它就会失败,因为没有提交应该拥有该ID。)