aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-01-31 22:09:24 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-01-31 22:09:24 -0200
commitd1ea865031d7fdabc3fb2cd405b9403a4cfe7b05 (patch)
treec68bb433c53d2e63a787d9e50df94e25ddee7ec1
parent7b304b0abbc737c9955eb601fb1d137a58dd5605 (diff)
downloadtemplates-d1ea865031d7fdabc3fb2cd405b9403a4cfe7b05.tar.gz
templates-d1ea865031d7fdabc3fb2cd405b9403a4cfe7b05.tar.bz2
Post-receive: receive.denyCurrentBranch
-rw-r--r--ikiwiki/Makefile1
-rwxr-xr-xikiwiki/bin/post-receive1
2 files changed, 1 insertions, 1 deletions
diff --git a/ikiwiki/Makefile b/ikiwiki/Makefile
index 97b5ce8..e3d6344 100644
--- a/ikiwiki/Makefile
+++ b/ikiwiki/Makefile
@@ -28,7 +28,6 @@ web_deploy:
publish: web web_deploy
post_receive:
- git config receive.denyCurrentBranch ignore
cd .git/hooks && ln -sf ../../bin/post-receive
whoami:
diff --git a/ikiwiki/bin/post-receive b/ikiwiki/bin/post-receive
index 9c79a40..47d4f79 100755
--- a/ikiwiki/bin/post-receive
+++ b/ikiwiki/bin/post-receive
@@ -9,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