projects
/
sockgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bd921b
)
Add post-receive mirroring hook
author
Jacob Casper
<dev@jacobcasper.com>
Fri, 10 Apr 2020 21:05:57 +0000
(16:05 -0500)
committer
Jacob Casper
<dev@jacobcasper.com>
Fri, 10 Apr 2020 21:05:57 +0000
(16:05 -0500)
templates/hooks/post-receive
[new file with mode: 0644]
patch
|
blob
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