diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-15 16:18:19 -0400 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-15 16:18:19 -0400 |
| commit | a78560944934d7728ae8d2949a5201487c0e4867 (patch) | |
| tree | d035c1158bf39de04c7ed4e2e45744f6b2effde0 /setup-recieve-hooks | |
| parent | 794e1951e4817c812d5d1897b43df92b91fbd581 (diff) | |
add hooks to clones
Diffstat (limited to 'setup-recieve-hooks')
| -rwxr-xr-x | setup-recieve-hooks | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/setup-recieve-hooks b/setup-recieve-hooks new file mode 100755 index 0000000..dbaad48 --- /dev/null +++ b/setup-recieve-hooks @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -xe + +REPOSITORIES=$(find /home/git/* -name '*.git' -type d) + +for repo in $REPOSITORIES; do + echo 'git push github -f --mirror' > "$repo/hooks/post-receive" + chmod +x "$repo/hooks/post-receive" +done |
