Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A post-receive git hook for tracking commits on Tempus tasks
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
.rvmrc
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
post-receive-template.rb
tempus-git-hook.gemspec

README.md

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.

Installation

  • Install the gem

    gem install tempus-git-hook --source=http://gems.scimedsolutions.com
    
  • Copy post-receive-template.rb, renamed as hooks/post-receive in 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
    

Testing

Just run the test file in ruby.

ruby test/test.rb
Something went wrong with that request. Please try again.