3 # Copyright (c) 2013 Tobias Schulte
6 test_description
='git svn branch for subproject clones'
8 TEST_PASSES_SANITIZE_LEAK
=true
11 test_expect_success
'initialize svnrepo' '
15 mkdir -p trunk/project branches tags &&
20 svn_cmd import -m "import for git-svn" . "$svnrepo" >/dev/null
23 svn_cmd co "$svnrepo"/trunk/project trunk/project &&
27 svn_cmd ci -m "updated trunk"
32 test_expect_success
'import into git' '
33 git svn init --trunk=trunk/project --branches=branches/*/project \
34 --tags=tags/*/project "$svnrepo" &&
36 git checkout remotes/origin/trunk
39 test_expect_success
'git svn branch tests' '
40 test_must_fail git svn branch a &&
41 git svn branch --parents a &&
42 test_must_fail git svn branch -t tag1 &&
43 git svn branch --parents -t tag1 &&
44 test_must_fail git svn branch --tag tag2 &&
45 git svn branch --parents --tag tag2 &&
46 test_must_fail git svn tag tag3 &&
47 git svn tag --parents tag3