user1310388
user1310388

Reputation:

How to update gerrit repos with changes submitted directly to git?

I am currently dealing with a situation where some people are test driving gerrit for code review, but those not yet using it can still push code directly to the remote git repo.

The thing is, gerrit's own repo is of course not updated with all the changes. How can I get it to be in sync with git?

Upvotes: 2

Views: 3236

Answers (1)

Brad
Brad

Reputation: 5532

Gerrit doesn't currently support referencing upstream repositories as the master. There are several requests for this so users can put Gerrit in front of Github, but it isn't currently supported. You have a couple options:

  1. Switch to Gerrit, but allow bypassing review. Gerrit is the master and people test driving code review can do so, but users wanting to bypass review can push directly to the repositories.

  2. Set up some scripts to sync Gerrit's copy of the repositories with upstream. This will get tricky if there are merge conflicts, but might be doable.

Good luck!

Upvotes: 1

Related Questions