From 3f57eca4e874bafd66a397912499d60f1d32cd2d Mon Sep 17 00:00:00 2001 From: Cache Saravento Date: Fri, 7 Aug 2015 14:20:33 -0300 Subject: Support for common repos at post-update --- bin/post-update | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/post-update b/bin/post-update index 3098dab..a45c29a 100755 --- a/bin/post-update +++ b/bin/post-update @@ -2,7 +2,12 @@ cd .. unset GIT_DIR -git annex sync + +if [ -d ".git/annex" ]; then + git annex sync +else + git checkout . +fi cd - exec git update-server-info -- cgit v1.2.3