source: trunk/scripts/git-migration/git-migrate-fast.sh @ 1901

Last change on this file since 1901 was 1901, checked in by andersk, 16 years ago

Partial work on a svn-all-fast-export based Git migrator.

  • Property svn:executable set to *
File size: 515 bytes
RevLine 
[1901]1#!/bin/bash
2set -e
3
4mako-render rules.mako > rules
5
6rm git -rf
7mkdir git
8cd git
9
10sed -n 's/^create repository // p' ../rules | while read repo; do
11    mkdir -p "$repo" && GIT_DIR="$repo" git init --bare
12done
13
14echo run > ../run.gdb
15gdb -batch -x ../run.gdb --args svn-all-fast-export ../rules /home/anders/xvm/svn
16
17sed -n 's/^create repository // p' ../rules | while read repo; do
18    ! [ -e "$repo/refs/heads/tags" ] || \
19        cp -a "$repo/refs/heads/tags/." "$repo/refs/tags" && \
20        rm -rf "$repo/refs/heads/tags"
21done
Note: See TracBrowser for help on using the repository browser.