summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-07-17 01:28:20 -0400
committerAndrew Cady <d@jerkface.net>2019-07-17 02:09:53 -0400
commit9139c1e74f19832e070323af2afd673dd482e365 (patch)
tree9169b436edd2cbfe1500192ba6e88fc7e78f04ec
parent0bcab35657ac1250ccc4bff714f7f4db0c5eaed5 (diff)
hello world
-rwxr-xr-xhooks/master-updated0
-rwxr-xr-xhooks/post-receive8
2 files changed, 8 insertions, 0 deletions
diff --git a/hooks/master-updated b/hooks/master-updated
deleted file mode 100755
index e69de29..0000000
--- a/hooks/master-updated
+++ /dev/null
diff --git a/hooks/post-receive b/hooks/post-receive
new file mode 100755
index 0000000..4e85b42
--- /dev/null
+++ b/hooks/post-receive
@@ -0,0 +1,8 @@
1#!/bin/sh
2if ! [ "$DID_SELF_UPDATE" ]
3then
4 GIT_WORK_TREE=. git checkout -f master -- hooks/post-receive
5 DID_SELF_UPDATE=y exec hooks/post-receive
6fi
7
8echo 'Hello, world!' >&2