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=81e2421b3d1f79109de28300da61dede2bdf910f;hp=6a3ff9e5622e685566e9929d5df7a2d029cb9b07;hb=14487f18a07a68935eeb45407fb16ff79ca6d312;hpb=6c1fcbbb9c290e23c2bb8dce1e20dd5b90834672 diff --git a/copy-alioth-to-gideon b/copy-alioth-to-gideon index 6a3ff9e..81e2421 100755 --- a/copy-alioth-to-gideon +++ b/copy-alioth-to-gideon @@ -12,7 +12,7 @@ ssh iwj@gideon.debian.org " mkdir -p transfer.tmp cd transfer.tmp - rsync -rltHxp --delete iwj@git.debian.org:/git/dgit-repos/repos/. . + rsync -rltHxp --delete iwj@git.debian.org:/git/dgit-repos/repos.now-on-gideon/. . find \( \( ! -type f ! -type d \) \ -o -perm +5002 -o \! -perm +2555 \ @@ -44,6 +44,17 @@ ssh iwj@gideon.debian.org " if [ "x$master" = x ] && [ "x$sid" != x ]; then git update-ref refs/heads/master refs/dgit/sid fi) + (export GIT_DIR=$f + git for-each-ref --format="%(refname)" | while read r; do + case "$r" in + refs/heads/master) ;; + refs/tags/debian/*) ;; + refs/dgit/*) ;; + *) + git update-ref -d "$r" + ;; + esac + done) done cat <$d/transfer.run