Gerrit安装后无法克隆All-Projects repo

时间:2013-09-18 12:45:41

标签: git gerrit

我有一个新设置的Gerrit实例

目前只有两个回购: 全项目 binutils的测试

尝试克隆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'.

克隆其他存储库(binutils-test)工作正常,所以至少基本设置似乎没问题。我的用户是Administators组的成员,因此不应该有任何访问问题。

我的最终目标是克隆All-Projects,因此我可以修改project.config以添加Verified标签。

2 个答案:

答案 0 :(得分:6)

blog提供了有关如何在project.config中添加“已验证标签”的详细信息,并要求您修改所有项目项目。

答案 1 :(得分:5)

在向gerrit邮件列表(回购讨论)发布类似问题后,我收到了以下说明。 这些至少可以作为一种解决方法,并使我能够编辑project.config并将更改推回到gerrit。 我现在有一个工作"已验证"标签

$ 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

这描述于 http://www.eclipsecon.org/2013/sites/eclipsecon.org.2013/files/Deploying%20Gerrit%20Code%20Review.pdf

相关问题