chiark
/
gitweb
/
~ianmdlvl
/
dgit-junk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc87781
)
make a master branch
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 18 Jul 2015 17:30:38 +0000
(18:30 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 18 Jul 2015 17:30:38 +0000
(18:30 +0100)
copy-alioth-to-gideon
patch
|
blob
|
history
diff --git
a/copy-alioth-to-gideon
b/copy-alioth-to-gideon
index 3709ee0c635c7bfab8521622b6c95c4c0ce7fdcf..6a3ff9e5622e685566e9929d5df7a2d029cb9b07 100755
(executable)
--- 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 <<END >$d/transfer.run