From: Ian Jackson Date: Sat, 18 Jul 2015 17:30:38 +0000 (+0100) Subject: make a master branch X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6c1fcbbb9c290e23c2bb8dce1e20dd5b90834672;p=dgit-junk.git make a master branch --- 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