aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArquivo Publico de Memoria Coletiva <arquivo@fluxo.info>2016-01-31 22:08:46 -0200
committerArquivo Publico de Memoria Coletiva <arquivo@fluxo.info>2016-01-31 22:08:46 -0200
commitd2b0295e862ea698e81306e2547e857aa4b92364 (patch)
tree2b500681e4dc55ee4e840b957a4736510bd0fb49
parent8d56f075eb2a5b4c61e21099866f93c061dd1e91 (diff)
downloadarquivo-d2b0295e862ea698e81306e2547e857aa4b92364.tar.gz
arquivo-d2b0295e862ea698e81306e2547e857aa4b92364.tar.bz2
Post-receive: receive.denyCurrentBranch
-rwxr-xr-xbin/post-update4
1 files changed, 4 insertions, 0 deletions
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