summaryrefslogtreecommitdiff
path: root/setup-recieve-hooks
blob: dbaad48ea150611317d133fbda8135f82be69b35 (plain)
1
2
3
4
5
6
7
8
9
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