aboutsummaryrefslogtreecommitdiff
path: root/bin/post-receive
diff options
context:
space:
mode:
Diffstat (limited to 'bin/post-receive')
-rwxr-xr-xbin/post-receive11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/post-receive b/bin/post-receive
index 996189d..48a6a16 100755
--- a/bin/post-receive
+++ b/bin/post-receive
@@ -3,5 +3,14 @@
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