3 # p must be set already
5 reposmirror=$tmp/git-mirror
6 pmirror=$reposmirror/$p.git
7 queuedir=$tmp/git/_mirror-queue
11 mirror_hook=$drs_dispatch/mirror-hook
12 t-make-hook-link dgit-mirror-rsync $mirror_hook
14 >$drs_dispatch/mirror-settings
15 t-mirror-set remoterepos="$reposmirror"
21 echo >>$drs_dispatch/mirror-settings "$1"
25 "$mirror_hook" "$drs_dispatch" "$@"
30 t-reporefs mirror $pmirror
31 diff $tmp/show-refs.{master,mirror}
32 cat $queuedir/$p.log ||:
33 t-files-notexist $queuedir/$p.{n,a,lock,err}
36 t-check-not-mirrored () {
37 # uses previous t-reporefs-master
38 t-reporefs mirror $pmirror
39 diff $tmp/show-refs.{master,mirror}