From 3176cac2ab93d83bec72ddb5d93afc8971ccc466 Mon Sep 17 00:00:00 2001 From: Arquivo Publico de Memoria Coletiva Date: Wed, 4 May 2016 09:19:44 -0300 Subject: Test deployment without git reset --- bin/post-receive | 20 ++++++++++++++++++++ bin/post-update | 20 -------------------- 2 files changed, 20 insertions(+), 20 deletions(-) create mode 100755 bin/post-receive delete mode 100755 bin/post-update diff --git a/bin/post-receive b/bin/post-receive new file mode 100755 index 00000000000..ff7cf507cd5 --- /dev/null +++ b/bin/post-receive @@ -0,0 +1,20 @@ +#!/bin/sh +# +# Post-receive git hook +# + +cd .. +unset GIT_DIR + +if [ -d ".git/annex" ]; then + git annex sync +else + git config receive.denyCurrentBranch ignore + #git reset HEAD + git checkout -f +fi + +git submodule update --init --recursive + +cd - +exec git update-server-info diff --git a/bin/post-update b/bin/post-update deleted file mode 100755 index 47d4f79a9e1..00000000000 --- a/bin/post-update +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# -# Post-receive git hook -# - -cd .. -unset GIT_DIR - -if [ -d ".git/annex" ]; then - git annex sync -else - git config receive.denyCurrentBranch ignore - git reset HEAD - git checkout -f -fi - -git submodule update --init --recursive - -cd - -exec git update-server-info -- cgit v1.2.3