summaryrefslogtreecommitdiff
path: root/set-up-all-post-receive-hooks.sh
blob: 8d3e26a177733f87c7457f11bfa32ec717d5b821 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
set -x
cd /git
find  -path './users' -prune -o -name config -print | while read repo_config; do
    dir="$(dirname $repo_config)"
    if [ -e $dir/git-daemon-export-ok -a -e $dir/HEAD -a -e $dir/$(awk '{ print $2 }' $dir/HEAD) ]; then
        sh -x /git/bin/set-up-post-receive-hooks.sh "$(dirname $repo_config)"
    fi

done