3 # Copyright (c) 2008 Deskin Miller
6 test_description
='git svn partial-rebuild tests'
10 test_expect_success
'initialize svnrepo' '
14 mkdir trunk branches tags &&
18 svn_cmd import -m "import for git-svn" . "$svnrepo" >/dev/null &&
19 svn_cmd copy "$svnrepo"/trunk "$svnrepo"/branches/a \
23 svn_cmd co "$svnrepo"/trunk trunk &&
26 svn_cmd ci -m "updated trunk"
28 svn_cmd co "$svnrepo"/branches/a a &&
32 svn_cmd ci -m "updated a"
34 git svn init --stdlayout "$svnrepo"
38 test_expect_success
'import an early SVN revision into git' '
42 test_expect_success
'make full git mirror of SVN' '
47 git svn init --stdlayout "$svnrepo" &&
53 test_expect_success
'fetch from git mirror and partial-rebuild' '
54 git config --add remote.origin.url "file://$PWD/mirror/.git" &&
55 git config --add remote.origin.fetch refs/remotes/*:refs/remotes/* &&