chiark / gitweb /
prune weird branches etc.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 18 Jul 2015 17:59:04 +0000 (18:59 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 18 Jul 2015 17:59:07 +0000 (18:59 +0100)
TODO
copy-alioth-to-gideon

diff --git a/TODO b/TODO
index 2740fc0..cb61eff 100644 (file)
--- 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)
index 6a3ff9e..0a6cc4c 100755 (executable)
@@ -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 <<END >$d/transfer.run