Add post-receive mirroring hook
authorJacob Casper <dev@jacobcasper.com>
Fri, 10 Apr 2020 21:05:57 +0000 (16:05 -0500)
committerJacob Casper <dev@jacobcasper.com>
Fri, 10 Apr 2020 21:05:57 +0000 (16:05 -0500)
templates/hooks/post-receive [new file with mode: 0644]

diff --git a/templates/hooks/post-receive b/templates/hooks/post-receive
new file mode 100644 (file)
index 0000000..8847b24
--- /dev/null
@@ -0,0 +1,3 @@
+while read OLD_REV NEW_REF REF_NAME; do
+  git push public $NEW_REV:$REF_NAME
+done