2012-07-31 105 views
0

我的项目是使用Gerrit 2.4.2的内置复制来将内容镜像到另一个git仓库。如何防止gerrit复制ref/changes/*镜像git仓库

我的配置看起来像下面,

[remote "another-git-server"] 
    url = mirorserver.com:/git/projects/${name} 
    push = +refs/heads/*:refs/heads/* 
    push = +refs/tags/*:refs/tags/* 

然而格里特复制所有裁判/修改/ *镜像混帐回购协议。我不想将这些内部审查更改复制到另一个git服务器。

有什么办法可以防止gerrit复制那些引用?

回答

2

根据文档http://gerrit-documentation.googlecode.com/svn/Documentation/2.4.2/config-replication.html,推送refs/heads/*和refs/tags/*不会从refs/changes/*中推送任何内容。如果你是积极的,这就是你所看到的,请在http://code.google.com/p/gerrit/issues/list提交一个错误。

另外一个工作周围,你可以尝试 - 指定在配置的authgroup类似,并创建不会对裁判/改变读取权限的组/ *

+0

有一个[功能要求(HTTP:/ /code.google.com/p/gerrit/issues/detail?id=1276&q=replication&colspec=ID%20Type%20Stars%20Milestone%20Status%20Priority%20Owner%20Summary)启用新的复制配置,而无需重新启动gerrit。我不记得在更改复制的push url后是否重新启动Gerrit。我已经重启了gerrit,看它是否有效。 @brand,谢谢你的提示。 :) – Kane 2012-08-02 05:33:17

+0

只是FYI - 与Gerrit 2.5(尚未发布),这已完成。复制功能现在是Gerrit插件,可以重新加载,以便在不重新启动服务器的情况下提供新的配置设置。 – Brad 2012-08-03 13:25:30

+0

我认为这是由于我没有重启gerrit服务器,即使我使用了正确的配置。 – Kane 2012-08-14 03:17:59