我是android开发人员,所以我为我的团队设置了Gerrit Code Review和Github!所以经过多次努力之后,我将github项目添加到了gerrit并且还进行了复制工作,但是我无法推动这个回购。所有其他回购都被推得很好。
我克隆了我的github repo,然后在git remote add *
添加了我的gerrit项目的ssh链接,然后输入了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
答案 0 :(得分:0)
如果您有权访问gerrit服务器,请检查您是否已授予gerrit的git文件夹足够的权限。