From 8f09a50e47eb2a6a0e666c8437774889c60e133c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 26 Oct 2017 12:48:18 -0200 Subject: Initial import --- share/ikiwiki/bin/post-receive | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 share/ikiwiki/bin/post-receive (limited to 'share/ikiwiki/bin/post-receive') diff --git a/share/ikiwiki/bin/post-receive b/share/ikiwiki/bin/post-receive new file mode 100755 index 0000000..627198d --- /dev/null +++ b/share/ikiwiki/bin/post-receive @@ -0,0 +1,21 @@ +#!/bin/sh +# +# Post-receive git hook +# + +cd .. +unset GIT_DIR + +if [ -d ".git/annex" ]; then + git annex sync +else + git config receive.denyCurrentBranch ignore + #git reset HEAD + git checkout -f +fi + +git submodule sync --recursive +git submodule update --init --recursive + +cd - +exec git update-server-info -- cgit v1.2.3