Skip to content

Instantly share code, notes, and snippets.

@ojacobson
Created December 21, 2012 02:41
Show Gist options
  • Save ojacobson/4350330 to your computer and use it in GitHub Desktop.
Save ojacobson/4350330 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
HOOKS="$(dirname "$0")"
# Capture stdin for replay into individual hooks.
REFS=$(cat)
for hook in "$HOOKS"/post-receive.d/*; do
echo "$REFS" | "$hook"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment