diff options
author | Ray Strode <rstrode@redhat.com> | 2016-12-05 17:02:24 +0000 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2016-12-05 17:33:19 +0000 |
commit | 37477ad97f7793515881b58c65cf625a8adbf5fa (patch) | |
tree | ce39cb70403ade4bae716ea24caf520dba430a21 | |
parent | 527c4b07469a353062bc38e1b6c4b40947679154 (diff) |
mirror-all-to-github: script to force full github sync
-rwxr-xr-x | mirror-all-to-github.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mirror-all-to-github.sh b/mirror-all-to-github.sh new file mode 100755 index 0000000..edaa6a9 --- /dev/null +++ b/mirror-all-to-github.sh @@ -0,0 +1,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/post-receive-mirror-github + fi + + popd +done |