aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorProviders Commitment for Privacy <pcp@nothingtohide.is>2015-10-08 09:08:06 -0300
committerProviders Commitment for Privacy <pcp@nothingtohide.is>2015-10-08 09:08:06 -0300
commit4a6b9cfaae3c98493be33201b77d3423c71b211d (patch)
tree5dc3ff3796c25413615dcfa845f7253859e6ca38 /bin
parent2e62869e89854faadb9b1a667e33802a497e47b8 (diff)
downloadpolicy-4a6b9cfaae3c98493be33201b77d3423c71b211d.tar.gz
policy-4a6b9cfaae3c98493be33201b77d3423c71b211d.tar.bz2
Support for static site generationdevelop
Diffstat (limited to 'bin')
-rwxr-xr-xbin/post-receive7
-rwxr-xr-xbin/post-update16
2 files changed, 23 insertions, 0 deletions
diff --git a/bin/post-receive b/bin/post-receive
new file mode 100755
index 0000000..996189d
--- /dev/null
+++ b/bin/post-receive
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+cd ..
+unset GIT_DIR
+
+git checkout -f
+git submodule update --init --recursive
diff --git a/bin/post-update b/bin/post-update
new file mode 100755
index 0000000..48a6a16
--- /dev/null
+++ b/bin/post-update
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+cd ..
+unset GIT_DIR
+
+if [ -d ".git/annex" ]; then
+ git annex sync
+else
+ git reset HEAD
+ git checkout -f
+fi
+
+git submodule update --init --recursive
+
+cd -
+exec git update-server-info