From: Arquivo Publico de Memoria Coletiva Date: Mon, 1 Feb 2016 00:08:46 +0000 (-0200) Subject: Post-receive: receive.denyCurrentBranch X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d2b0295e862ea698e81306e2547e857aa4b92364;p=arquivo.git Post-receive: receive.denyCurrentBranch --- diff --git a/bin/post-update b/bin/post-update index 48a6a16cb27..47d4f79a9e1 100755 --- a/bin/post-update +++ b/bin/post-update @@ -1,4 +1,7 @@ #!/bin/sh +# +# Post-receive git hook +# cd .. unset GIT_DIR @@ -6,6 +9,7 @@ unset GIT_DIR if [ -d ".git/annex" ]; then git annex sync else + git config receive.denyCurrentBranch ignore git reset HEAD git checkout -f fi