We are getting this error during our replication process:
[2015-01-29 16:46:05,477] ERROR com.googlesource.gerrit.plugins.replication.ReplicationQueue : Failed replicate of refs/tags/V2_3_4 to gerrit2@backup-host:/git/backup-host/path/to/repo.git: status REJECTED_NONFASTFORWARD
It looks to me like the replication plugin is unable to sync repositories with non-fastforwarded commits. The plugin would need to run a "git push --force" to accomplish this. I looked at the code, and to my untrained java eyes I did not see the setForce(true) method call needed to enable this behavior:
http://download.eclipse.org/jgit/site/3.6.2.201501210735-r/apidocs/org/eclipse/jgit/api/PushCommand.html#setForce(boolean)I did not see any configurable value for this either. Should this be enabled by default or be a configurable option?
VersionsGerrit: 2.9
Replication Plugin: 2.9
Thanks,
Nick