diff options
Diffstat (limited to 'share/ikiwiki/bin')
-rwxr-xr-x | share/ikiwiki/bin/post-receive | 21 |
1 files changed, 21 insertions, 0 deletions
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 |