diff options
Diffstat (limited to 'ikiwiki/bin/post-receive')
-rwxr-xr-x | ikiwiki/bin/post-receive | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ikiwiki/bin/post-receive b/ikiwiki/bin/post-receive index 996189d..9c79a40 100755 --- a/ikiwiki/bin/post-receive +++ b/ikiwiki/bin/post-receive @@ -1,7 +1,19 @@ #!/bin/sh +# +# Post-receive git hook +# cd .. unset GIT_DIR -git checkout -f +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 |