diff options
Diffstat (limited to 'post-receive')
-rw-r--r-- | post-receive | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/post-receive b/post-receive new file mode 100644 index 0000000..89b0842 --- /dev/null +++ b/post-receive @@ -0,0 +1,12 @@ +#!/bin/bash +# post-receive hook for Git that deploys TODO.md to my website. + +while read oldrev newrev ref +do + if [[ $ref =~ .*/master$ ]]; + then + if git show HEAD:TODO.md > /dev/null; then + git show HEAD:TODO.md > /www/todos/cacheracer.html + fi + fi +done |