Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t9125-git-svn-multi-glob-branch-names.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t9125-git-svn-multi-glob-branch-names.sh` 37 lines ยท 1112 bytes Raw Blame History 1 #!/bin/sh 2 # Copyright (c) 2008 Marcus Griep 3 4 test_description='git svn multi-glob branch names' 5 . ./lib-git-svn.sh 6 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_cmd import -m "$test_description" project "$svnrepo/project" && 12 rm -rf project && 13 svn_cmd cp -m "fun" "$svnrepo/project/trunk" \ 14 "$svnrepo/project/branches/v14.1/beta" && 15 svn_cmd cp -m "more fun!" "$svnrepo/project/branches/v14.1/beta" \ 16 "$svnrepo/project/branches/v14.1/gold" 17 ' 18 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 && 22 (cd project && 23 git rev-parse "refs/remotes/origin/v14.1/beta" && 24 git rev-parse "refs/remotes/origin/v14.1/gold" 25 ) 26 ' 27 28 test_expect_success 'test dcommit to multi-globbed branch' " 29 (cd project && 30 git reset --hard 'refs/remotes/origin/v14.1/gold' && 31 echo hello >> foo && 32 git commit -m 'hello' -- foo && 33 git svn dcommit 34 ) 35 " 36 37 test_done