Skip to content

Instantly share code, notes, and snippets.

View GregSutcliffe's full-sized avatar

Greg "Gwmngilfen" Sutcliffe GregSutcliffe

  • Red Hat
  • Scotland
View GitHub Profile
@frimik
frimik / post-receive.email.sh
Created April 26, 2012 21:04
post-receive.email
#!/bin/bash
#
# IRC notification post-receive hook.
# Based on https://wiki.icinga.org/display/community/GIT+Commit+Bot
#
# Author: Mikael Fridh <frimik@gmail.com>
#
# This script pulls out the commit information and sends it to
# the Notify plugin in supybot via localhost 5050.
#
@frimik
frimik / post-receive.sh
Created April 26, 2012 21:02
post-receive
#! /bin/sh
# This hook copies stdin to a temporary file, then executes
# hook scripts based on git config data.
#
# If you set the git config hooks.post-receive value to "hook1", this script
# will execute "hook1" if post-receive.hook1 exists, and is executable.
#
# Gitolite configuration example:
#
# repo bid-oopsie