Skip to content

Instantly share code, notes, and snippets.

View wizardishungry's full-sized avatar
🐫
Copyright 1987-2013, Larry Wall

Jon Williams wizardishungry

🐫
Copyright 1987-2013, Larry Wall
View GitHub Profile
@wizardishungry
wizardishungry / post-receive.php
Created December 29, 2008 22:01
GitHub post receive hook example -- secret support off
<?php /*
example post receive hook for github
url: http://example.com/post-receive.php?secret=amazingpasswordgoeshere
setup sudo using visudo -- these are my defaults on openbsd, YMMV
Cmnd_Alias GIT = /usr/local/bin/git
Defaults:www !authenticate
www ALL=(usernamehere) NOPASSWD: GIT
*/
#!/bin/sh
VERS='master 1.0 1.1 1.2'
source ~/.bashrc
cd ~/Projects/symfony
for ver in $VERS
do
echo $ver;
git checkout $ver || exit
sleep 2;