aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/post-update10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/post-update b/bin/post-update
index 3098dab92fa..48a6a16cb27 100755
--- a/bin/post-update
+++ b/bin/post-update
@@ -2,7 +2,15 @@
cd ..
unset GIT_DIR
-git annex sync
+
+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