| # Copyright (c) 2008 Deskin Miller |
| test_description='git svn partial-rebuild tests' |
| test_expect_success 'initialize svnrepo' ' |
| mkdir trunk branches tags && |
| svn_cmd import -m "import for git-svn" . "$svnrepo" >/dev/null && |
| svn_cmd copy "$svnrepo"/trunk "$svnrepo"/branches/a \ |
| svn_cmd co "$svnrepo"/trunk trunk && |
| svn_cmd ci -m "updated trunk" |
| svn_cmd co "$svnrepo"/branches/a a && |
| svn_cmd ci -m "updated a" |
| git svn init --stdlayout "$svnrepo" |
| test_expect_success 'import an early SVN revision into git' ' |
| test_expect_success 'make full git mirror of SVN' ' |
| git svn init --stdlayout "$svnrepo" && |
| test_expect_success 'fetch from git mirror and partial-rebuild' ' |
| git config --add remote.origin.url "file://$PWD/mirror/.git" && |
| git config --add remote.origin.fetch refs/remotes/*:refs/remotes/* && |