summaryrefslogtreecommitdiff
path: root/hooks/post-receive
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/post-receive')
-rwxr-xr-xhooks/post-receive8
1 files changed, 8 insertions, 0 deletions
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