Gerrit - 复制到 github?
努力让 gerrit 复制正常工作。这是我的replication.config 的示例,
[remote "github"]
url = [email protected]: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 [email protected]:dbousamra/gitanalysis.git
org.eclipse.jgit.errors.TransportException: [email protected]:dbousamra/gitanalysis.git: push not permitted
:
ERROR com.google.gerrit.server.git.PushReplication : Cannot replicate to [email protected]:dbousamra/All-Projects.git
org.eclipse.jgit.errors.TransportException: [email protected]:dbousamra/All-Projects.git: invalid privatekey: /home/git/.ssh/x.pub
Struggling to get gerrit replication working. Here is a sample of my replication.config
[remote "github"]
url = [email protected]:dbousamra/${name}.git
push = +refs/heads/*:refs/heads/*
push = +refs/tags/*:refs/tags/*
timeout = 5
replicationDelay = 0
authGroup = Administrators
I think I've done it correctly, but when I force a manual gerrit replication I am presented with:
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 [email protected]:dbousamra/gitanalysis.git
org.eclipse.jgit.errors.TransportException: [email protected]:dbousamra/gitanalysis.git: push not permitted
and now
ERROR com.google.gerrit.server.git.PushReplication : Cannot replicate to [email protected]:dbousamra/All-Projects.git
org.eclipse.jgit.errors.TransportException: [email protected]:dbousamra/All-Projects.git: invalid privatekey: /home/git/.ssh/x.pub
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来像是 SSH 密钥和 Github 身份验证的问题。您是否为运行 Gerrit 的用户创建了 SSH 密钥并将该 SSH 密钥添加到您的 Github 帐户?
Sounds like a problem with the SSH key and the authentication at Github. Did you create an SSH key for the user, which is running Gerrit and add that SSH key to your Github account?