projects
/
sockgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
templates/hooks/post-receive
@@ -0,0
+1,3
@@
+while read OLD_REV NEW_REF REF_NAME; do
+ git push public $NEW_REV:$REF_NAME
+done