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

tom*_*tom 7 git gerrit

我有一个新设置的Gerrit实例

目前只有两个回购:All-Projects binutils-test

尝试克隆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'.
Run Code Online (Sandbox Code Playgroud)

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

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

tom*_*tom 6

在向gerrit邮件列表(repo-discuss)发布类似问题后,我收到了以下说明.这些至少可以作为一种解决方法,并使我能够编辑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
Run Code Online (Sandbox Code Playgroud)

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


unc*_*all 6

博客提供了有关如何在project.config中添加"已验证标签"的详细信息,并且需要您修改所有项目项目.