Merge branch 'jk/pager-config'
[git/jnareb-git/bp-gitweb.git] / t / t9102-git-svn-deep-rmdir.sh
blob0e7ce34b9b1e254873a2700cf58095318b49b15c
1 #!/bin/sh
2 test_description='git-svn rmdir'
3 . ./lib-git-svn.sh
5 test_expect_success 'initialize repo' '
6 mkdir import &&
7 cd import &&
8 mkdir -p deeply/nested/directory/number/1 &&
9 mkdir -p deeply/nested/directory/number/2 &&
10 echo foo > deeply/nested/directory/number/1/file &&
11 echo foo > deeply/nested/directory/number/2/another &&
12 svn import -m "import for git-svn" . "$svnrepo" &&
13 cd ..
16 test_expect_success 'mirror via git-svn' '
17 git-svn init "$svnrepo" &&
18 git-svn fetch &&
19 git checkout -f -b test-rmdir remotes/git-svn
22 test_expect_success 'Try a commit on rmdir' '
23 git rm -f deeply/nested/directory/number/2/another &&
24 git commit -a -m "remove another" &&
25 git-svn set-tree --rmdir HEAD &&
26 svn ls -R "$svnrepo" | grep ^deeply/nested/directory/number/1
30 test_done