aboutsummaryrefslogtreecommitdiff
path: root/ikiwiki/bin/post-update
diff options
context:
space:
mode:
Diffstat (limited to 'ikiwiki/bin/post-update')
-rwxr-xr-xikiwiki/bin/post-update8
1 files changed, 7 insertions, 1 deletions
diff --git a/ikiwiki/bin/post-update b/ikiwiki/bin/post-update
index 3098dab..beed524 100755
--- a/ikiwiki/bin/post-update
+++ b/ikiwiki/bin/post-update
@@ -2,7 +2,13 @@
cd ..
unset GIT_DIR
-git annex sync
+
+if [ -d ".git/annex" ]; then
+ git annex sync
+else
+ git reset HEAD
+ git checkout -f
+fi
cd -
exec git update-server-info