3 # Copyright (c) 2006 Eric Wong
6 test_description
='git-svn --follow-parent fetching'
9 if test -n "$GIT_SVN_NO_LIB" && test "$GIT_SVN_NO_LIB" -ne 0
11 echo 'Skipping: --follow-parent needs SVN libraries'
16 test_expect_success
'initialize repo' "
20 echo hello > trunk/readme &&
21 svn import -m 'initial' . $svnrepo &&
25 echo world >> trunk/readme &&
26 svn commit -m 'another commit' &&
28 svn mv -m 'rename to thunk' trunk thunk &&
30 echo goodbye >> thunk/readme &&
31 svn commit -m 'bye now' &&
35 test_expect_success
'init and fetch --follow-parent a moved directory' "
36 git-svn init -i thunk $svnrepo/thunk &&
37 git-svn fetch --follow-parent -i thunk &&
38 git-rev-parse --verify refs/remotes/trunk &&
42 test_debug
'gitk --all &'