2 # Copyright (c) 2008 Marcus Griep
4 test_description
='git svn multi-glob branch names'
7 test_expect_success
'setup svnrepo' '
8 mkdir project project/trunk project/branches \
9 project/branches/v14.1 project/tags &&
10 echo foo > project/trunk/foo &&
11 svn import -m "$test_description" project "$svnrepo/project" &&
13 svn cp -m "fun" "$svnrepo/project/trunk" \
14 "$svnrepo/project/branches/v14.1/beta" &&
15 svn cp -m "more fun!" "$svnrepo/project/branches/v14.1/beta" \
16 "$svnrepo/project/branches/v14.1/gold"
19 test_expect_success
'test clone with multi-glob in branch names' '
20 git svn clone -T trunk -b branches/*/* -t tags \
21 "$svnrepo/project" project &&
23 git rev-parse "refs/remotes/v14.1/beta" &&
24 git rev-parse "refs/remotes/v14.1/gold" &&
28 test_expect_success
'test dcommit to multi-globbed branch' "
30 git reset --hard 'refs/remotes/v14.1/gold' &&
32 git commit -m 'hello' -- foo &&