chiark / gitweb /
prune weird branches etc.
[dgit-junk.git] / copy-alioth-to-gideon
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