From b699f906246f7d94d9251b88881b1d32616a2a10 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sat, 5 Dec 2009 15:18:21 -0500 Subject: [PATCH] Populate the superrepo as part of the git migration. svn path=/trunk/scripts/git-migration/; revision=2576 --- git-migrate-fast.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) 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 <