努力让gerrit复制工作。以下是我的replication.config
示例[remote "github"]
url = git@github.com:dbousamra/${name}.git
push = +refs/heads/*:refs/heads/*
push = +refs/tags/*:refs/tags/*
timeout = 5
replicationDelay = 0
authGroup = Administrators
我认为我已经正确完成了,但当我强制进行手动gerrit复制时,我会看到:
at java.lang.Thread.run(Thread.java:619)
[2011-07-11 14:43:41,386] ERROR com.google.gerrit.server.git.PushReplication : Cannot replicate to git@github.com:dbousamra/gitanalysis.git
org.eclipse.jgit.errors.TransportException: git@github.com:dbousamra/gitanalysis.git: push not permitted
现在
ERROR com.google.gerrit.server.git.PushReplication : Cannot replicate to git@github.com:dbousamra/All-Projects.git
org.eclipse.jgit.errors.TransportException: git@github.com:dbousamra/All-Projects.git: invalid privatekey: /home/git/.ssh/x.pub
答案 0 :(得分:5)
听起来像是SSH密钥和Github上的身份验证问题。您是否为该用户创建了一个SSH密钥,该密钥正在运行Gerrit并将该SSH密钥添加到您的Github帐户?