Tempus Git Hook
This is the post-receive hook that our git repositories use to track commits in Tempus.
When a commit message contains a Tempus task ID like #123456, this hook will log the commit in Tempus under that task.
Install the gem
gem install tempus-git-hook --source=http://gems.scimedsolutions.com
post-receive-template.rb, renamed as
hooks/post-receivein each repository on the gitosis server.
- Copy it to the gitosis template directory for future repositories: /usr/share/pyshared/gitosis/templates/default/hooks/.
Make the hooks executable.
chmod +x post-receive
Just run the test file in ruby.