From 4a6b9cfaae3c98493be33201b77d3423c71b211d Mon Sep 17 00:00:00 2001 From: Providers Commitment for Privacy Date: Thu, 8 Oct 2015 09:08:06 -0300 Subject: Support for static site generation --- bin/post-update | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/post-update (limited to 'bin/post-update') diff --git a/bin/post-update b/bin/post-update new file mode 100755 index 0000000..48a6a16 --- /dev/null +++ b/bin/post-update @@ -0,0 +1,16 @@ +#!/bin/sh + +cd .. +unset GIT_DIR + +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 -- cgit v1.2.3