Created
December 5, 2011 20:14
-
-
Save shadowhand/1435163 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while read oldish newish ref; do | |
branch=$(echo "$ref" | cut -d"/" -f3-) | |
done | |
case "$branch" in | |
"live") | |
git --work-tree=/var/www/dylanstestserver.com/ checkout -f $branch | |
echo 'Changes pushed live.' | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment