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/t9102-git-svn-deep-rmdir.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 / t9102-git-svn-deep-rmdir.sh` 32 lines ยท 798 bytes Raw Blame History 1 #!/bin/sh 2 test_description='git svn rmdir' 3 4 . ./lib-git-svn.sh 5 6 test_expect_success 'initialize repo' ' 7 mkdir import && 8 ( 9 cd import && 10 mkdir -p deeply/nested/directory/number/1 && 11 mkdir -p deeply/nested/directory/number/2 && 12 echo foo >deeply/nested/directory/number/1/file && 13 echo foo >deeply/nested/directory/number/2/another && 14 svn_cmd import -m "import for git svn" . "$svnrepo" 15 ) 16 ' 17 18 test_expect_success 'mirror via git svn' ' 19 git svn init "$svnrepo" && 20 git svn fetch && 21 git checkout -f -b test-rmdir remotes/git-svn 22 ' 23 24 test_expect_success 'Try a commit on rmdir' ' 25 git rm -f deeply/nested/directory/number/2/another && 26 git commit -a -m "remove another" && 27 git svn set-tree --rmdir HEAD && 28 svn_cmd ls -R "$svnrepo" | grep ^deeply/nested/directory/number/1 29 ' 30 31 32 test_done