The sleep time helps to avoid overloading servers if a bug causes the script to send emails in an infinite loop. Now that the script has been running a while and we have a little more confidence in it, we reduce the timeout to speed up deliveries of email. |
||
---|---|---|
.. | ||
README | ||
commit-email.py |
README
This script takes a git repository, fetches any remote patches on the repository, and then shoots out an email describing any new commits. This should either be setup in cron to poll a remote repository, or---better still---be executed by another script when a push event occurs. One possible way or running it is as follows: ./commit-email.py \ --repo project_name \ --to mailing.list@example.com \ --from mailing.list@example.com \ ./path/to/repo