我是 android 开发人员,所以我为我的团队设置了 Gerrit Code Review 和 Github!因此,经过大量的努力,我将我的 github 项目添加到了 gerrit 中,并且还进行了复制工作,但我无法推送这个 repo。所有其他回购都被很好地推送。
我克隆了我的 github 存储库,然后添加了我的 gerrit 项目的 ssh 链接,git remote add *
然后我输入git push gerrit HEAD:refs/for/ics
了但是我得到了一些解包错误
这是整个日志:
keyur@keyur-Inspiron-N4010:~/android_device_lge_p350$ git push gerrit HEAD:refs/for/ics
Counting objects: 7, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 526 bytes, done.
Total 5 (delta 3), reused 0 (delta 0)
fatal: Unpack error, check server log
remote: Resolving deltas: 100% (3/3)
error: unpack failed: error Missing unknown c605ed77d4a43b8389c7bb544c3a5834cf0f64cf
To ssh://keyur2maru@review.pecancm.insomnia247.nl:6117/android_device_lge_p350.git
! [remote rejected] HEAD -> refs/for/ics (n/a (unpacker error))
error: failed to push some refs to 'ssh://keyur2maru@review.pecancm.insomnia247.nl:6117/android_device_lge_p350.git'
keyur@keyur-Inspiron-N4010:~/android_device_lge_p350$
它失败了:(我可以提交任何其他回购:(但无法完成这项工作:(
我的配置文件:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:PecanCM/android_device_lge_p350.git
[branch "cm-10.1"]
remote = origin
merge = refs/heads/cm-10.1
[remote "gerrit"]
url = ssh://keyur2maru@review.pecancm.insomnia247.nl:6117/android_device_lge_p350.git
fetch = +refs/heads/*:refs/remotes/gerrit/*
[branch "ics"]
remote = origin
merge = refs/heads/ics
我的 Github 仓库:https ://github.com/PecanCM/android_device_lge_p350
我的 Gerrit 服务器:http ://review.pecancm.insomnia247.nl