From 6c1fcbbb9c290e23c2bb8dce1e20dd5b90834672 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 18 Jul 2015 18:30:38 +0100 Subject: [PATCH] make a master branch --- copy-alioth-to-gideon | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/copy-alioth-to-gideon b/copy-alioth-to-gideon index 3709ee0..6a3ff9e 100755 --- a/copy-alioth-to-gideon +++ b/copy-alioth-to-gideon @@ -38,6 +38,12 @@ ssh iwj@gideon.debian.org " for f in $d/transfer.tmp/*.git; do cp $d/repos/_template/description $f/description touch $f/git-daemon-export-ok + (export GIT_DIR=$f + master=`git for-each-ref "[r]efs/heads/master"` + sid=`git for-each-ref "[r]efs/dgit/sid"` + if [ "x$master" = x ] && [ "x$sid" != x ]; then + git update-ref refs/heads/master refs/dgit/sid + fi) done cat <$d/transfer.run -- 2.30.2