From 1e381c5335b451a493a333b9639774e3d991a4de Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 7 Aug 2015 14:58:19 -0300 Subject: Adds post-receive hook and fix post-update --- ikiwiki/bin/post-update | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ikiwiki/bin') 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 -- cgit v1.2.3