3 # Copyright (c) 2013 Tobias Schulte
6 test_description
='git svn branch for subproject clones'
10 test_expect_success
'initialize svnrepo' '
14 mkdir -p trunk/project branches tags &&
19 svn_cmd import -m "import for git-svn" . "$svnrepo" >/dev/null
22 svn_cmd co "$svnrepo"/trunk/project trunk/project &&
26 svn_cmd ci -m "updated trunk"
31 test_expect_success
'import into git' '
32 git svn init --trunk=trunk/project --branches=branches/*/project \
33 --tags=tags/*/project "$svnrepo" &&
35 git checkout remotes/origin/trunk
38 test_expect_success
'git svn branch tests' '
39 test_must_fail git svn branch a &&
40 git svn branch --parents a &&
41 test_must_fail git svn branch -t tag1 &&
42 git svn branch --parents -t tag1 &&
43 test_must_fail git svn branch --tag tag2 &&
44 git svn branch --parents --tag tag2 &&
45 test_must_fail git svn tag tag3 &&
46 git svn tag --parents tag3