From: Arquivo Publico de Memoria Coletiva Date: Sun, 9 Aug 2015 19:34:28 +0000 (-0300) Subject: Git hook: recursive submodule init/update X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c00d1400ca336bbf763ecfd02c8108c44b6c0da7;p=arquivo.git Git hook: recursive submodule init/update --- 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