From 14c45be41ba1507fd71a2dd4ed86f22fa7860c28 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 18 Jul 2015 18:59:04 +0100 Subject: [PATCH 1/1] prune weird branches etc. --- TODO | 2 -- copy-alioth-to-gideon | 11 +++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) 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 -- 2.30.2