aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-08-20 09:41:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-08-20 09:41:35 -0300
commit20f760863133c4cca057d1fd26240aee577a6d63 (patch)
treecabe712c0a6c76d2171f1fdbc438e4b1c5187db8 /Makefile
parent6759fe7f6f778fa4b19f7df3d19d63c8737e2ca5 (diff)
downloadpuppet-bootstrap-20f760863133c4cca057d1fd26240aee577a6d63.tar.gz
puppet-bootstrap-20f760863133c4cca057d1fd26240aee577a6d63.tar.bz2
Adds git hooks for push-to-deploy
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b869918..71eb0e1 100644
--- a/Makefile
+++ b/Makefile
@@ -57,3 +57,11 @@ clean:
rm -rf ssl
rm -rf modules
git checkout modules
+
+post_update:
+ git config receive.denyCurrentBranch ignore
+ cd .git/hooks && ln -sf ../../bin/post-update
+
+post_receive:
+ git config receive.denyCurrentBranch ignore
+ cd .git/hooks && ln -sf ../../bin/post-receive