X-Git-Url: http://xvm.mit.edu/gitweb/invirt/scripts/git-migration.git/blobdiff_plain/573f4f05e544af781e596b827b22b4047e2cfe94..b699f906246f7d94d9251b88881b1d32616a2a10:/git-migrate-fast.sh diff --git a/git-migrate-fast.sh b/git-migrate-fast.sh index 9835e8e..56c2927 100755 --- a/git-migrate-fast.sh +++ b/git-migrate-fast.sh @@ -3,8 +3,9 @@ set -e # Depends: python-yaml, python-mako # and svn-all-fast-export, which comes from git://repo.or.cz/svn-all-fast-export +# (except you actually want git://andersk.mit.edu/svn-all-fast-export localtime) # and builds with `qmake && make` with -# Build-Depends: qt4-qmake, libqt4-dev, libsvn-dev +# Build-Depends: libqt4-dev, libsvn-dev # Usage: ./git-migrate-fast.sh [svn-uri] # Exports into new subdir ./git . @@ -62,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 <