diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-10-01 15:02:47 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-10-01 15:02:47 -0300 |
commit | c212514035cffd38acbfac1413064937b28685b6 (patch) | |
tree | a043a9c3caac740cf61313d04d9d84280a44f30f /bin/post-receive | |
download | semanticscuttle-c212514035cffd38acbfac1413064937b28685b6.tar.gz semanticscuttle-c212514035cffd38acbfac1413064937b28685b6.tar.bz2 |
Squashed 'puppet/' content from commit eb5ecc4
git-subtree-dir: puppet
git-subtree-split: eb5ecc4fcad6bd4f75e38683ae12a8dba4382c0b
Diffstat (limited to 'bin/post-receive')
-rwxr-xr-x | bin/post-receive | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/post-receive b/bin/post-receive new file mode 100755 index 0000000..e6baa07 --- /dev/null +++ b/bin/post-receive @@ -0,0 +1,17 @@ +#!/bin/sh + +cd .. +unset GIT_DIR + +if [ -d ".git/annex" ]; then + git annex sync +else + #git reset HEAD + git checkout -f +fi + +git submodule sync --recursive +git submodule update --init --recursive + +cd - +exec git update-server-info |