diff options
Diffstat (limited to 'puppet/bin/post-update')
-rwxr-xr-x | puppet/bin/post-update | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/puppet/bin/post-update b/puppet/bin/post-update new file mode 100755 index 0000000..48a6a16 --- /dev/null +++ b/puppet/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 |