| # Copyright (c) 2007 Eric Wong |
| test_description='git svn init/clone tests' |
| # setup, run inside tmp so we don't have any conflicts with $svnrepo |
| test_expect_success 'setup svnrepo' ' |
| mkdir project project/trunk project/branches project/tags && |
| echo foo > project/trunk/foo && |
| svn_cmd import -m "$test_description" project "$svnrepo"/project && |
| test_expect_success 'basic clone' ' |
| git svn clone "$svnrepo"/project/trunk && |
| test -d trunk/.git/svn && |
| test_expect_success 'clone to target directory' ' |
| git svn clone "$svnrepo"/project/trunk target && |
| test -d target/.git/svn && |
| test_expect_success 'clone with --stdlayout' ' |
| git svn clone -s "$svnrepo"/project && |
| test -d project/.git/svn && |
| test_expect_success 'clone to target directory with --stdlayout' ' |
| git svn clone -s "$svnrepo"/project target && |
| test -d target/.git/svn && |