| # Copyright (c) 2006 Eric Wong |
| test_description='git-svn --follow-parent fetching' |
| if test -n "$GIT_SVN_NO_LIB" && test "$GIT_SVN_NO_LIB" -ne 0 |
| echo 'Skipping: --follow-parent needs SVN libraries' |
| test_expect_success 'initialize repo' " |
| echo hello > trunk/readme && |
| svn import -m 'initial' . $svnrepo && |
| echo world >> trunk/readme && |
| svn commit -m 'another commit' && |
| svn mv -m 'rename to thunk' trunk thunk && |
| echo goodbye >> thunk/readme && |
| svn commit -m 'bye now' && |
| test_expect_success 'init and fetch --follow-parent a moved directory' " |
| git-svn init -i thunk $svnrepo/thunk && |
| git-svn fetch --follow-parent -i thunk && |
| git-rev-parse --verify refs/remotes/trunk && |
| test_debug 'gitk --all &' |