Support for Hooks

GitCentric supports both Git and Gerrit Code Reviewhooks. We recommend using Gerrit Code Review hooks when your environment requires hooks.

For more information about Gerrit Code Review hooks, see the Gerrit Code Review documentation, here:

Migrating Existing Git Hooks

Two Gerrit Code Review hooks, ref-update and ref-updated, are installed to <gc_home>/site/hooks and are used to migrate any Git hooks you might have created in the <gc_home>/site/git/<repoName>.git/hooks directory.

Note: The ref-update and ref-updated hooks require Perl and expect to find it at /usr/bin/perl. If you have Perl in a different location, you will need to update these hooks with the correct path.