- bash
- git
- create
client_replication_remotes
file in${GERRIT_SITE}/etc/
(syntax in example below) - create
change-merged
file in${GERRIT_SITE}/hooks
- make
change-merged
executable (chmod +x change-merged
)
Gerrit daemon restart is not needed, hook will be fired at the nearest opportunity.
git
command output is stored in ${GERRIT_SITE}/logs/change-merged_log