aboutsummaryrefslogtreecommitdiff
path: root/bin/post-receive
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-10-01 15:02:47 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-10-01 15:02:47 -0300
commitc212514035cffd38acbfac1413064937b28685b6 (patch)
treea043a9c3caac740cf61313d04d9d84280a44f30f /bin/post-receive
downloadsemanticscuttle-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-xbin/post-receive17
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