Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 Server Administration Documentation | 2025.2

# Gerrit configuration

Perforce provides a custom Python plug-in script named `gconn-change-merged.py`. When properly renamed, the script enables Gerrit to generate a webhook for a specific type of Git commit, either change-merged or ref-update. You might want to have two copies of the script, one for each type of action.

## Prerequisites

The target repo must NOT already exist in P4 Server.

The source repo must not be empty.

## System requirements with Gerrit

- Git Connector 2017.1 July patch or later
  - If your installation of the Git Connector is prior to the July 2017 patch, see Upgrading Git Connector.
- Gerrit version 2.13 or 2.14 installed and working on the Git server with Python version of 2.7.x. or later
- The Perforce webhook for Gerrit `gconn-change-merged.py`, which is in the `/opt/perforce/git-connector/bin` directory of the Git Connector
- A user in the Gerrit application that is limited to the minimal privileges necessary for mirroring
- A source repo in Gerrit that already exists and is not empty

## Next step

Installation and script renaming

Your search for returned results