3 # Copyright (c) 2007 Eric Wong
6 test_description='git svn init/clone tests'
10 # setup, run inside tmp so we don't have any conflicts with $svnrepo
16 test_expect_success 'setup svnrepo' '
17 mkdir project project/trunk project/branches project/tags &&
18 echo foo > project/trunk/foo &&
19 svn import -m "$test_description" project "$svnrepo"/project &&
23 test_expect_success 'basic clone' '
25 git svn clone "$svnrepo"/project/trunk &&
26 test -d trunk/.git/svn &&
31 test_expect_success 'clone to target directory' '
33 git svn clone "$svnrepo"/project/trunk target &&
34 test -d target/.git/svn &&
39 test_expect_success 'clone with --stdlayout' '
41 git svn clone -s "$svnrepo"/project &&
42 test -d project/.git/svn &&
43 test -e project/foo &&
47 test_expect_success 'clone to target directory with --stdlayout' '
49 git svn clone -s "$svnrepo"/project target &&
50 test -d target/.git/svn &&