为Gerrit配置复制配置文件

时间:2018-05-17 02:32:19

标签: gitlab gerrit

我的Gerrit replication.config 如下所示:

[remote "company-svc"]
projects = dev-portal-ui
url = git@gitlab.eng.company.com:/core-build/${name}.git
push = +refs/heads/*:refs/heads/*

我可以使用命令镜像克隆:

cd ${GERRIT_SITE}/git
git clone --mirror ssh://git@gitlab.eng.company.com/core-build/dev-portal-ui.git

在Gitlab上,我发现ssh URL为:

git@gitlab.eng.company.com:core-build/dev-portal-ui.git

replication.config 的配置是否正确?

1 个答案:

答案 0 :(得分:0)

是的,是的。

两种SSH URL语法都是正确的:

ssh://git@server/...
git@server:...

第一个是SSH URI scheme,第二个是scp-like syntax

相关问题