开发者

Gerrit - Replicating to github?

开发者 https://www.devze.com 2023-03-19 02:02 出处:网络
Struggling to get gerrit replication working. Here is a sample of my replication.config [remote \"github\"]

Struggling to get gerrit replication working. Here is a sample of my replication.config

[remote "github"]
  url = git@github.com:db开发者_StackOverflow社区ousamra/${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 git@github.com:dbousamra/gitanalysis.git
org.eclipse.jgit.errors.TransportException: git@github.com:dbousamra/gitanalysis.git: push not permitted

and now

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


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消