From: Evan Broder Date: Sat, 5 Dec 2009 20:18:21 +0000 (-0500) Subject: Populate the superrepo as part of the git migration. X-Git-Url: http://xvm.mit.edu/gitweb/invirt/scripts/git-migration.git/commitdiff_plain/b699f906246f7d94d9251b88881b1d32616a2a10?ds=sidebyside Populate the superrepo as part of the git migration. svn path=/trunk/scripts/git-migration/; revision=2576 --- diff --git a/git-migrate-fast.sh b/git-migrate-fast.sh index 66be321..56c2927 100755 --- a/git-migrate-fast.sh +++ b/git-migrate-fast.sh @@ -63,5 +63,41 @@ git branch -f upstream 1.0.1 git branch -f master 1.0.1-1 popd +mkdir packages.git +pushd packages.git +git init --bare +( + echo 'commit refs/heads/prod' + echo 'mark :1' + echo 'committer Invirt Git Import now' + echo 'data </dev/null + commit="$(git rev-parse refs/heads/master)" + popd &>/dev/null + + echo "M 160000 $commit ${r%.git}" + done + + echo 'M 100644 inline .gitmodules' + echo 'data <