Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Post-receive hook for Gitolite for sending commit messages to Campfire
branch: master

This branch is 9 commits ahead of brendonrapp:master

Merge pull request #1 from jlambert121/git_config_overrides

updated to allow config in gitolite.conf
latest commit edf01fe182
@peplin authored


Adapted heavily from:

Installation (basic)

  1. Copy files to your gitolite user's .gitolite/hooks/common folder
  2. Rename config.yml.example to config.yml, and fill in your Hipchat account information
  3. Re-run "gitolite setup" (or "gl-setup" for g2) to propogate the hooks to each repo's hook folder

Installation (advanced)

This method will allow you to use the config.yml for some (or all) of the configuration or the gitolite.conf configuration file for some (or all) of the config. This setup will also maintain the hooks in the gitolite-admin repository.

  1. As the gitolite user on the gitolite server:
  2. Update the GIT_CONFIG_KEYS variable in the ~/.gitolite.rc to include "hooks..*" (If this variable is already defined, regex matches are space separated)
  3. Add "LOCAL_CODE => "$ENV{HOME}/.gitolite/local-code"," to the ~/gitolite.rc
  4. In your checked out copy of the gitolite-admin repo:
  5. Create the local-code/hooks/common directory ("mkdir -p local-code/hooks/common")
  6. Copy the post-receive, post-receive-hipchat.rb, and config.yml (if desired) into this directory
  7. Configure


Individual repository variables will override the @all repository. Both will override settings in the config.yml.

config.yml example:

apitoken: '1234567890'
room: "developers"
notify: 0
from: "Gitolite"
gitweburl: ''
proxyaddress: ""
proxyport: 83


repo @all
  config hooks.hipchat.from = Git

repo cool_project
  RW+ = @all
  config = CoolRoom

repo puppet
  RW+ = @ops
  R   = @all
  config hooks.hipchat.apitoken = 'asdfjkl'
  config = Ops

Note: Git config variables cannot have an underscore in them so there are some changes from the previous variable names.

Something went wrong with that request. Please try again.