3 # Copyright (c) 2007 Eric Wong
6 test_description='git svn tracking removed top-level path'
9 test_expect_success 'make history for tracking' '
12 echo hello >> import/trunk/README &&
13 svn import -m initial import "$svnrepo" &&
15 svn co "$svnrepo"/trunk trunk &&
16 echo bye bye >> trunk/README &&
17 svn rm -m "gone" "$svnrepo"/trunk &&
20 echo "new" > trunk/FOLLOWME &&
21 svn import -m "new trunk" trunk "$svnrepo"/trunk
24 test_expect_success 'clone repo with git' '
25 git svn clone -s "$svnrepo" x &&
30 test_expect_success 'make sure r2 still has old file' "
32 test -n \"\$(git svn find-rev r1)\" &&
33 git reset --hard \$(git svn find-rev r1) &&
36 test x\$(git svn find-rev r2) = x