X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit-junk.git;a=blobdiff_plain;f=copy-alioth-to-gideon;h=6a3ff9e5622e685566e9929d5df7a2d029cb9b07;hp=f7cf913619d95c8fde79413827544566d8893c4b;hb=0588988e0a6ec52ca0f5cafacd57e2adfb5c3b5b;hpb=7801ef88df5182c00db14af7d49afe76148d3e77 diff --git a/copy-alioth-to-gideon b/copy-alioth-to-gideon index f7cf913..6a3ff9e 100755 --- a/copy-alioth-to-gideon +++ b/copy-alioth-to-gideon @@ -26,9 +26,24 @@ ssh iwj@gideon.debian.org " exit 1 fi + ( + cd $d/transfer.tmp + mv irker.git irker.arrgh + cp -a _template irker.git + cd irker.git + git fetch -p ../irker.arrgh "+refs/heads/dgit/*:refs/dgit/*" + ) + set +x for f in $d/transfer.tmp/*.git; do cp $d/repos/_template/description $f/description + touch $f/git-daemon-export-ok + (export GIT_DIR=$f + master=`git for-each-ref "[r]efs/heads/master"` + sid=`git for-each-ref "[r]efs/dgit/sid"` + if [ "x$master" = x ] && [ "x$sid" != x ]; then + git update-ref refs/heads/master refs/dgit/sid + fi) done cat <$d/transfer.run @@ -36,7 +51,11 @@ ssh iwj@gideon.debian.org " cd $d/transfer.tmp rsync -rltHxp --delete *.git $d/repos/ # _template - echo done. + echo done locally, copying... + + distrodir=$d/dispatch-dir/distro\=debian + \$distrodir/mirror-hook \$distrodir all + echo done all. END chmod +x $d/transfer.run '