[英]Unable to clone All-Projects repo after Gerrit install
I have a newly setup instance of Gerrit 我有一个新设置的Gerrit实例
Currently there are only two repos: All-Projects binutils-test 目前只有两个回购:All-Projects binutils-test
When attempting to clone All-Projects I receive the following error: 尝试克隆All-Projects时收到以下错误:
git clone ssh://user@hostname:29418/All-Projects
Initialized empty Git repository in /home/user/
error: Trying to write ref HEAD with nonexistant object 2055f748c7285720057fe7213258e6c5b11776e3
fatal: Cannot update the ref 'HEAD'.
Cloning of the other repository (binutils-test) works OK, so at least the basic setup seems OK. 克隆其他存储库(binutils-test)工作正常,所以至少基本设置似乎没问题。 My user is a member of the Administators group, and so shouldn't have any access issues.
我的用户是Administators组的成员,因此不应该有任何访问问题。
My end goal is cloning All-Projects so I can modify the project.config to add the Verified label. 我的最终目标是克隆All-Projects,因此我可以修改project.config以添加Verified标签。
此博客提供了有关如何在project.config中添加“已验证标签”的详细信息,并且需要您修改所有项目项目。
After posting a similar question to the gerrit mailing list (repo-discuss), I got the following instructions. 在向gerrit邮件列表(repo-discuss)发布类似问题后,我收到了以下说明。 These at least act as a workaround and enabled me to edit the project.config and push the changes back to gerrit.
这些至少可以作为一种解决方法,并使我能够编辑project.config并将更改推回到gerrit。 I now have a working "verified" label.
我现在有一个工作“验证”的标签。
$ git init cfg ; cd cfg
$ git remote add origin ssh://user@hostname:29418/All-Projects
$ git pull origin refs/meta/config
$ vi project.config
$ git commit -a -m 'Updated permissions'
$ git push origin HEAD:refs/meta/config
this is described in http://www.eclipsecon.org/2013/sites/eclipsecon.org.2013/files/Deploying%20Gerrit%20Code%20Review.pdf 这在http://www.eclipsecon.org/2013/sites/eclipsecon.org.2013/files/Deploying%20Gerrit%20Code%20Review.pdf中有描述。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.