To enable GitCentric’s optional Gerrit Code Review functionality:
push = refs/heads/*:refs/for/*
This specifies the source refs/heads/* and target refs/for/* branch mapping that will be used to push changes to a special branch for code review. Users can add this line by executing the following command on each clone:
git config remote.origin.push 'refs/heads/*:refs/for/*'
scp -p -P <port><server>:hooks/commit-msg .git/hooks/
where:
<port> is the SSHD listener port (typically 29418).
<server> the host where GitCentric is installed
If you forget to copy the commit-msg hook, your push will fail. The error message you receive in this situation instructs you to copy the commit-msg hook, as described in Step 3 above. You must then execute a
git commit --amend
before trying the push again.