Product SiteDocumentation Site

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:
  1. puppet://$server/private/$environment/git/post-commit,
  2. puppet://$server/files/git/post-commit
  3. puppet://$server/git/post-commit