From 701ed3bfec821058ee1159f3b4a09a32941e9393 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 23 Nov 2015 16:16:44 -0200 Subject: Removes post-update hook --- bin/post-receive | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'bin/post-receive') diff --git a/bin/post-receive b/bin/post-receive index 996189d..48a6a16 100755 --- a/bin/post-receive +++ b/bin/post-receive @@ -3,5 +3,14 @@ cd .. unset GIT_DIR -git checkout -f +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