Skip to content

Instantly share code, notes, and snippets.

@filterfish
Created September 13, 2011 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filterfish/1213336 to your computer and use it in GitHub Desktop.
Save filterfish/1213336 to your computer and use it in GitHub Desktop.
jekyll post-receive hook
#!/bin/sh
while read stdin; do
refname=$( echo $stdin | awk '{print $3}')
done
branch=$(basename $refname)
cd ..
env -i git reset --hard $branch
PATH=/usr/local/ruby-1.9.2-p0/bin:/bin:/usr/bin
jekyll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment