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 import -m "import for git-svn" . "$svnrepo" >/dev/null &&
18 svn copy "$svnrepo"/trunk "$svnrepo"/branches/a \
19 -m "created branch a" &&
22 svn co "$svnrepo"/trunk trunk &&
25 svn ci -m "updated trunk" &&
27 svn co "$svnrepo"/branches/a a &&
31 svn 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/* &&