From d32455804814b364da42ef15a3680deeddbd9dda Mon Sep 17 00:00:00 2001 From: Jacob Casper Date: Fri, 10 Apr 2020 16:05:57 -0500 Subject: [PATCH] Add post-receive mirroring hook --- templates/hooks/post-receive | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 templates/hooks/post-receive 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 -- 2.20.1