summaryrefslogtreecommitdiff
path: root/mirror-all-to-github.sh
blob: 3168508df985d7429baa301951c41b808267eeb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -x
cd /git
find  -path './users' -prune -o -name config -print | while read repo_config; do
    pushd $(dirname $repo_config) 

    if [ -e git-daemon-export-ok -a -e HEAD -a -e $(awk '{ print $2 }' HEAD) ]; then
        /git/bin/sync-github-mirror
    fi

    popd
done