From a554311fc8d76ad5152333d42d8867c28d52c530 Mon Sep 17 00:00:00 2001
From: David Li
Date: Sat, 9 Jan 2016 20:33:47 -0700
Subject: Update TODOs
---
post-receive | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 post-receive
(limited to 'post-receive')
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
--
cgit v1.2.3