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=0a6cc4c1ef461806d6390eac80ae3d355a493eaf;hp=6a3ff9e5622e685566e9929d5df7a2d029cb9b07;hb=14c45be41ba1507fd71a2dd4ed86f22fa7860c28;hpb=131f4a47997e39ae4c35ac1557b227c8fb82527b diff --git a/copy-alioth-to-gideon b/copy-alioth-to-gideon index 6a3ff9e..0a6cc4c 100755 --- a/copy-alioth-to-gideon +++ b/copy-alioth-to-gideon @@ -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