From: Jacob Casper Date: Fri, 10 Apr 2020 21:05:57 +0000 (-0500) Subject: Add post-receive mirroring hook X-Git-Url: https://git.jacobcasper.com/?p=sockgit.git;a=commitdiff_plain;h=d32455804814b364da42ef15a3680deeddbd9dda Add post-receive mirroring hook --- diff --git a/templates/hooks/post-receive b/templates/hooks/post-receive new file mode 100644 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