3 # Copyright (c) 2009 Eric Wong
6 test_description='git svn shallow clone'
9 test_expect_success 'setup test repository' '
10 svn_cmd mkdir -m "create standard layout" \
11 "$svnrepo"/trunk "$svnrepo"/branches "$svnrepo"/tags &&
12 svn_cmd cp -m "branch off trunk" \
13 "$svnrepo"/trunk "$svnrepo"/branches/a &&
14 svn_cmd co "$svnrepo"/branches/a &&
19 svn_cmd commit -m "add foo"
25 test_expect_success 'clone trunk with "-r HEAD"' '
26 git svn clone -r HEAD "$svnrepo/trunk" g &&
27 ( cd g && git rev-parse --symbolic --verify HEAD )