diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-08-20 09:41:35 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-08-20 09:41:35 -0300 |
commit | 20f760863133c4cca057d1fd26240aee577a6d63 (patch) | |
tree | cabe712c0a6c76d2171f1fdbc438e4b1c5187db8 /bin/post-update | |
parent | 6759fe7f6f778fa4b19f7df3d19d63c8737e2ca5 (diff) | |
download | puppet-bootstrap-20f760863133c4cca057d1fd26240aee577a6d63.tar.gz puppet-bootstrap-20f760863133c4cca057d1fd26240aee577a6d63.tar.bz2 |
Adds git hooks for push-to-deploy
Diffstat (limited to 'bin/post-update')
-rwxr-xr-x | bin/post-update | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/post-update b/bin/post-update new file mode 100755 index 0000000..48a6a16 --- /dev/null +++ b/bin/post-update @@ -0,0 +1,16 @@ +#!/bin/sh + +cd .. +unset GIT_DIR + +if [ -d ".git/annex" ]; then + git annex sync +else + git reset HEAD + git checkout -f +fi + +git submodule update --init --recursive + +cd - +exec git update-server-info |