From: Ian Jackson Date: Sat, 18 Jul 2015 17:59:04 +0000 (+0100) Subject: prune weird branches etc. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit-junk.git;a=commitdiff_plain;h=14c45be41ba1507fd71a2dd4ed86f22fa7860c28 prune weird branches etc. --- diff --git a/TODO b/TODO index 2740fc0..cb61eff 100644 --- a/TODO +++ b/TODO @@ -3,8 +3,6 @@ THINGS FROM IRC TRANSCRIPTS TRANSITION -make announcement when in testing - switch: - announce - disable write to old repos (by linkfarming) 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