aboutsummaryrefslogtreecommitdiff
path: root/puppet/bin/post-receive
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/bin/post-receive')
-rwxr-xr-xpuppet/bin/post-receive12
1 files changed, 11 insertions, 1 deletions
diff --git a/puppet/bin/post-receive b/puppet/bin/post-receive
index 996189d..e6baa07 100755
--- a/puppet/bin/post-receive
+++ b/puppet/bin/post-receive
@@ -3,5 +3,15 @@
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 sync --recursive
git submodule update --init --recursive
+
+cd -
+exec git update-server-info