Troubleshooting Gerrit one-way mirroring

Note

Mirroring occurs upon commit or merge (depending on the Gerrit workflow), so pushing a Gerrit code review on a pseudo-branch, such as

git push origin HEAD:refs/for/master

is not sufficient to fire the webhook.

Important

To verify which repo is being mirrored, at the Git Connector command line, issue the following command:

bin/gconn --mirrorhooks list

The response might be similar to:

//graphDepot/repoName <<< http://GerritHost.com/repoName.git

which indicates that the //graphDepot/repoName destination repo mirrors the http://GerritHost.com/repoName.git source repo.

Tip

To view command-line help:

From the GERRIT_SITE directory, issue the command:

./hooks/change-merged --help

If there are any issues, review the following files, or send them to Perforce Technical Support:

On the Gerrit server:

GERRIT_SITE/git/repoName.git/config

On the Git Connector server:

/opt/perforce/git-connector/repos/graphDepot/repoName.git/.mirror.config
/opt/perforce/git-connector/repos/graphDepot/repoName.git/push_log
/opt/perforce/git-connector/repos/graphDepot/repoName.git/fetch_log
/opt/perforce/git-connector/repos/graphDepot/repoName.git/.mirror.log
/opt/perforce/git-connector/gconn.conf
/opt/perforce/git-connector/logs/gconn.log
/opt/perforce/git-connector/logs/p4gc.log