aboutsummaryrefslogtreecommitdiff
path: root/post-receive
blob: 89b084251c84d57fcc34dc44f0ea0d995e706a83 (plain)
1
2
3
4
5
6
7
8
9
10
11
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