summaryrefslogtreecommitdiff
path: root/hooks/post-commit
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/post-commit')
-rwxr-xr-xhooks/post-commit12
1 files changed, 12 insertions, 0 deletions
diff --git a/hooks/post-commit b/hooks/post-commit
new file mode 100755
index 0000000..ca4d55a
--- /dev/null
+++ b/hooks/post-commit
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+pass=0
+cd $PWD \
+ && scp hooks/post-receive \
+ megapahit.net:/usr/local/git/pub/website.git/hooks/ \
+ && pass=1
+
+if [ $pass = 0 ]
+then
+ exit 1
+fi