gitweb: Add parse_commits, used to bulk load commit objects.
[git/dscho.git] / t / t9102-git-svn-deep-rmdir.sh
blob572aaedc06986505ff7b16b5553632051dfa2c58
1 test_description='git-svn rmdir'
2 . ./lib-git-svn.sh
4 test_expect_success 'initialize repo' "
5 mkdir import &&
6 cd import &&
7 mkdir -p deeply/nested/directory/number/1 &&
8 mkdir -p deeply/nested/directory/number/2 &&
9 echo foo > deeply/nested/directory/number/1/file &&
10 echo foo > deeply/nested/directory/number/2/another &&
11 svn import -m 'import for git-svn' . $svnrepo &&
12 cd ..
15 test_expect_success 'mirror via git-svn' "
16 git-svn init $svnrepo &&
17 git-svn fetch &&
18 git checkout -f -b test-rmdir remotes/git-svn
21 test_expect_success 'Try a commit on rmdir' "
22 git rm -f deeply/nested/directory/number/2/another &&
23 git commit -a -m 'remove another' &&
24 git-svn set-tree --rmdir HEAD &&
25 svn ls -R $svnrepo | grep ^deeply/nested/directory/number/1
29 test_done