]> gitweb.fluxo.info Git - templates.git/commitdiff
Post-receive: receive.denyCurrentBranch
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 1 Feb 2016 00:09:24 +0000 (22:09 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 1 Feb 2016 00:09:24 +0000 (22:09 -0200)
ikiwiki/Makefile
ikiwiki/bin/post-receive

index 97b5ce8cf7a361999a135ddc79758ce85f31ea2a..e3d63449bd00205a2dc6176bbd0463afd4d91eee 100644 (file)
@@ -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:
index 9c79a407489a18164bb36ce475087de259d38598..47d4f79a9e17d7ebd12d57c972615d0fbcd0b9c7 100755 (executable)
@@ -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