ci: skip GitHub workflow runs for already-tested commits/trees
[git.git] / t / t9152-svn-empty-dirs-after-gc.sh
blob89f285d082965c0b8f0d8cbee226f3c8e2a75cfd
1 #!/bin/sh
3 # Copyright (c) 2009 Robert Zeh
5 test_description='git svn creates empty directories, calls git gc, makes sure they are still empty'
6 . ./lib-git-svn.sh
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"
12 done
15 test_expect_success 'clone' 'git svn clone "$svnrepo" cloned'
17 test_expect_success 'git svn gc runs' '
19 cd cloned &&
20 git svn gc
24 test_expect_success 'git svn mkdirs recreates empty directories after git svn gc' '
26 cd cloned &&
27 rm -r * &&
28 git svn mkdirs &&
29 for i in a b c d d/e d/e/f "weird file name"
31 if ! test -d "$i"
32 then
33 echo >&2 "$i does not exist" &&
34 exit 1
36 done
40 test_done