3 # Copyright (c) 2008 Deskin Miller
6 test_description='git svn partial-rebuild tests'
9 test_expect_success 'initialize svnrepo' '
13 mkdir trunk branches tags &&
17 svn_cmd import -m "import for git-svn" . "$svnrepo" >/dev/null &&
18 svn_cmd copy "$svnrepo"/trunk "$svnrepo"/branches/a \
19 -m "created branch a" &&
22 svn_cmd co "$svnrepo"/trunk trunk &&
25 svn_cmd ci -m "updated trunk" &&
27 svn_cmd co "$svnrepo"/branches/a a &&
31 svn_cmd ci -m "updated a" &&
33 git svn init --stdlayout "$svnrepo"
37 test_expect_success 'import an early SVN revision into git' '
41 test_expect_success 'make full git mirror of SVN' '
46 git svn init --stdlayout "$svnrepo" &&
52 test_expect_success 'fetch from git mirror and partial-rebuild' '
53 git config --add remote.origin.url "file://$PWD/mirror/.git" &&
54 git config --add remote.origin.fetch refs/remotes/*:refs/remotes/* &&