From d2b0295e862ea698e81306e2547e857aa4b92364 Mon Sep 17 00:00:00 2001 From: Arquivo Publico de Memoria Coletiva Date: Sun, 31 Jan 2016 22:08:46 -0200 Subject: Post-receive: receive.denyCurrentBranch --- bin/post-update | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3