我在与 gitolite 存储库相同的服务器上安装了 Redmine。
为了将我的存储库链接到我的 Redmine 实例,我使用以下命令在本地克隆了存储库:
git clone --bare --local /home/git/repositories/my-repo.git
正如我在服务器上成功克隆了 repo 一样,我可以按预期浏览 Redmine 上的 repo。
问题是,一旦我这样做了,我就不能再向本地机器上的远程仓库推送任何东西了。
当我尝试
git push
我收到以下错误:
Counting objects: 15, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (8/8), 695 bytes, done.
Total 8 (delta 6), reused 0 (delta 0)
fatal: loose object 455f30c5243ec5b5cc698b1e51bdfb23ee6c1b22 (stored in ./objects/45/5f30c5243ec5b5cc698b1e51bdfb23ee6c1b22) is corrupt
error: unpack failed: unpack-objects abnormal exit
To git@dev.my-host.org:my-repo.git
! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'git@my-host.org:my-repo.git'
有什么想法吗?
编辑#1
gitolite 日志显示以下内容:
2012-10-22.10:59:59 13121 ssh ARGV=drgomesp SOC=git-receive-pack 'my-repo.git' FROM=187.65.248.7
2012-10-22.11:00:00 13121 access(my-repo, drgomesp, W, 'any'),-> refs/.*
2012-10-22.11:00:00 13121 trigger,Writable,access_1,ACCESS_1,my-repo,drgomesp,W,any,refs/.*
2012-10-22.11:00:00 13121 pre_git my-repo drgomesp W any -> refs/.*
2012-10-22.11:00:00 13121 system,git,shell,-c,git-receive-pack '/home/git/repositories/my-repo.git'
2012-10-22.11:00:00 13121 END