chiark / gitweb /
make a master branch
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 18 Jul 2015 17:30:38 +0000 (18:30 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 18 Jul 2015 17:30:38 +0000 (18:30 +0100)
copy-alioth-to-gideon

index 3709ee0..6a3ff9e 100755 (executable)
@@ -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 <<END >$d/transfer.run