diff options
author | David Li <li.davidm96@gmail.com> | 2016-01-09 20:33:47 -0700 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2016-01-09 20:33:47 -0700 |
commit | a554311fc8d76ad5152333d42d8867c28d52c530 (patch) | |
tree | 6d225469d99b62d91d95bedfdbea1c301d0cb264 /post-receive | |
parent | 5211190bb0c37d5d03d325e7a8b4d3e0b20a51f4 (diff) |
Update TODOs
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 |