如何防止gerrit复制ref/changes/*以镜像git存储库



我的项目使用Gerrit 2.4.2的内置复制将内容镜像到另一个git repo。

我的配置如下,

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

但是Gerrit复制所有引用/更改/*以镜像git-reo。我不想将这些内部审查更改复制到另一个git服务器上。

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

根据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,并创建一个对refs/changes/*没有读取权限的组

最新更新