Merge branch 'fixes/2.45.1/2.41' into fixes/2.45.1/2.42
[alt-git.git] / t / t9102-git-svn-deep-rmdir.sh
blob946ef85eb9803f005da614bf4f58aa3949f4d882
1 #!/bin/sh
2 test_description='git svn rmdir'
4 . ./lib-git-svn.sh
6 test_expect_success 'initialize repo' '
7 mkdir import &&
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"
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
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
32 test_done