aboutsummaryrefslogtreecommitdiff
path: root/bin/post-receive
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 /bin/post-receive
parent6759fe7f6f778fa4b19f7df3d19d63c8737e2ca5 (diff)
downloadpuppet-bootstrap-20f760863133c4cca057d1fd26240aee577a6d63.tar.gz
puppet-bootstrap-20f760863133c4cca057d1fd26240aee577a6d63.tar.bz2
Adds git hooks for push-to-deploy
Diffstat (limited to 'bin/post-receive')
-rwxr-xr-xbin/post-receive7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/post-receive b/bin/post-receive
new file mode 100755
index 0000000..996189d
--- /dev/null
+++ b/bin/post-receive
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+cd ..
+unset GIT_DIR
+
+git checkout -f
+git submodule update --init --recursive