Add post-receive mirroring hook
[sockgit.git] / templates / hooks / post-receive
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