X-Git-Url: http://xvm.mit.edu/gitweb/invirt/scripts/git-migration.git/blobdiff_plain/d1e5ae618a16a1c263f1eb87380810d9d25d92f7..02b3a3a43af26cc2665d4c464733c05d63c751c8:/git-migrate-fast.sh?ds=sidebyside diff --git a/git-migrate-fast.sh b/git-migrate-fast.sh index d63a20f..1f977bd 100755 --- a/git-migrate-fast.sh +++ b/git-migrate-fast.sh @@ -16,9 +16,10 @@ done svn-all-fast-export --identity-map ../authors ../rules "$SVN" sed -n 's/^create repository // p' ../rules | while read repo; do - ! [ -e "$repo/refs/heads/tags" ] || \ - cp -a "$repo/refs/heads/tags/." "$repo/refs/tags" && \ - rm -rf "$repo/refs/heads/tags" + if [ -e "$repo/refs/heads/tags" ]; then + cp -a "$repo/refs/heads/tags/." "$repo/refs/tags" + rm -rf "$repo/refs/heads/tags" + fi done pushd packages/invirt-remote.git @@ -39,6 +40,13 @@ git filter-branch --tag-name-filter cat -- ^sipb-xen-dns/1~11 ^dns --all rm -rf info/grafts refs/original refs/heads/dns popd +pushd packages/invirt-database-server.git +git fetch ../invirt-database.git refs/tags/0.0.1:refs/heads/tmp +echo $(git rev-parse 0.0.1 refs/heads/tmp^) >> info/grafts +git filter-branch --tag-name-filter cat -- ^refs/heads/tmp --all +rm -rf info/grafts refs/original refs/heads/tmp +popd + pushd packages/libyaml.git git fetch git://andersk.mit.edu/libyaml.git refs/tags/upstream/0.1.1:refs/tags/upstream/0.1.1 refs/tags/debian/0.1.1-1:refs/tags/debian/0.1.1-1 git branch upstream upstream/0.1.1