9.5.2. Customizing post-commit
The post-commit hook normally sends out messages to the email addresses in $GIT_DIR/commit-list, or otherwise uses the updates pushed to the GIT repository for one purpose or the other.
The post-commit script with the Git module allows emails to be sent, containing the updates to the GIT repository, but you may have different requirements. The post-commit script is obtained from the following locations:
puppet://$server/private/$environment/git/post-commit,
puppet://$server/files/git/post-commit
puppet://$server/git/post-commit