3 # Copyright (c) 2009 Eric Wong
5 test_description
='git svn creates empty directories'
8 test_expect_success
'initialize repo' '
9 for i in a b c d d/e d/e/f "weird file name"
11 svn_cmd mkdir -m "mkdir $i" "$svnrepo"/"$i"
15 test_expect_success
'clone' 'git svn clone "$svnrepo" cloned'
17 test_expect_success
'empty directories exist' '
20 for i in a b c d d/e d/e/f "weird file name"
24 echo >&2 "$i does not exist"
31 test_expect_success
'more emptiness' '
32 svn_cmd mkdir -m "bang bang" "$svnrepo"/"! !"
35 test_expect_success
'git svn rebase creates empty directory' '
36 ( cd cloned && git svn rebase )
40 test_expect_success
'git svn mkdirs recreates empty directories' '
45 for i in a b c d d/e d/e/f "weird file name" "! !"
49 echo >&2 "$i does not exist"
56 test_expect_success
'git svn mkdirs -r works' '
61 for i in a b c d d/e d/e/f "weird file name"
65 echo >&2 "$i does not exist"
72 echo >&2 "$i should not exist"
79 echo >&2 "$i not exist"